A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
MovementAnimationParameterControl Class Reference

Control and trigger animations based on the right moves. More...

Inheritance diagram for MovementAnimationParameterControl:
Inheritance graph
Collaboration diagram for MovementAnimationParameterControl:
Collaboration graph

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
 

Detailed Description

Control and trigger animations based on the right moves.

Definition at line 8 of file MovementAnimationParameterControl.cs.

Member Function Documentation

◆ AnimationEventPlayFootstepSound()

void MovementAnimationParameterControl.AnimationEventPlayFootstepSound ( )
inlineprivate

Play footstep sound via animation events.

Definition at line 132 of file MovementAnimationParameterControl.cs.

◆ Awake()

void MovementAnimationParameterControl.Awake ( )
inline

Use for initialisation

Definition at line 16 of file MovementAnimationParameterControl.cs.

◆ OnDisable()

void MovementAnimationParameterControl.OnDisable ( )
inlineprivate

When an object is disable, we unsubscrib from animations

Definition at line 32 of file MovementAnimationParameterControl.cs.

Here is the call graph for this function:

◆ OnEnable()

void MovementAnimationParameterControl.OnEnable ( )
inlineprivate

When an object is enabled, we subscribed to animations

Definition at line 24 of file MovementAnimationParameterControl.cs.

Here is the call graph for this function:

◆ SetAnimationParameters()

void MovementAnimationParameterControl.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 
)
inlineprivate

We take the parameters and trigger appopriate animations.

Definition at line 40 of file MovementAnimationParameterControl.cs.

Here is the caller graph for this function:

Field Documentation

◆ m_Animator

Animator MovementAnimationParameterControl.m_Animator
private

Definition at line 11 of file MovementAnimationParameterControl.cs.


The documentation for this class was generated from the following file: