A 2D Farming RPG
This is just a simple 2D farming RPG game
|
Control and trigger animations based on the right moves. More...
Public Member Functions | |
void | Awake () |
Use for initialisation More... | |
Private Member Functions | |
void | OnEnable () |
When an object is enabled, we subscribed to animations More... | |
void | OnDisable () |
When an object is disable, we unsubscrib from animations More... | |
void | SetAnimationParameters (float xInput, float yInput, bool isWalking, bool isRunning, bool isIdle, bool isCarrying, ToolEffect toolEffect, bool isUsingToolRight, bool isUsingToolLeft, bool isUsingToolUp, bool isUsingToolDown, bool isLiftingToolRight, bool isLiftingToolLeft, bool isLiftingToolUp, bool isLiftingToolDown, bool isPickingRight, bool isPickingLeft, bool isPickingUp, bool isPickingDown, bool isSwingingToolRight, bool isSwingingToolLeft, bool isSwingingToolUp, bool isSwingingToolDown, bool idleRight, bool idleLeft, bool idleUp, bool idleDown) |
We take the parameters and trigger appopriate animations. More... | |
void | AnimationEventPlayFootstepSound () |
Play footstep sound via animation events. More... | |
Private Attributes | |
Animator | m_Animator |
Control and trigger animations based on the right moves.
Definition at line 8 of file MovementAnimationParameterControl.cs.
|
inlineprivate |
Play footstep sound via animation events.
Definition at line 132 of file MovementAnimationParameterControl.cs.
|
inline |
Use for initialisation
Definition at line 16 of file MovementAnimationParameterControl.cs.
|
inlineprivate |
When an object is disable, we unsubscrib from animations
Definition at line 32 of file MovementAnimationParameterControl.cs.
|
inlineprivate |
When an object is enabled, we subscribed to animations
Definition at line 24 of file MovementAnimationParameterControl.cs.
|
inlineprivate |
We take the parameters and trigger appopriate animations.
Definition at line 40 of file MovementAnimationParameterControl.cs.
|
private |
Definition at line 11 of file MovementAnimationParameterControl.cs.