Class UnitAnimatorController
Inheritance
UnitAnimatorController
Implements
IEntityPostInitializable
Assembly: cs.temp.dll.dll
Syntax
public class UnitAnimatorController : MonoBehaviour, IAnimatorController, IMonoBehaviour, IEntityPostInitializable
Properties
Animator
Declaration
public Animator Animator { get; }
Property Value
Type |
Description |
Animator |
|
CurrState
Declaration
public AnimatorState CurrState { get; }
Property Value
IsDamageAnimationEnabled
Declaration
public bool IsDamageAnimationEnabled { get; }
Property Value
IsInMvtState
Using a parameter in the Animator component, this determines whether the unit is currently in the moving animator state or not.
This allows other components to handle movement related actions smoothly and sync them correctly with the unit's movement
Declaration
public bool IsInMvtState { get; }
Property Value
LockState
Declaration
public bool LockState { get; set; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
timeModifier
Declaration
protected ITimeModifier timeModifier { get; }
Property Value
Type |
Description |
ITimeModifier |
|
Unit
Declaration
public IUnit Unit { get; }
Property Value
unitMgr
Declaration
protected IUnitManager unitMgr { get; }
Property Value
Type |
Description |
IUnitManager |
|
Methods
Disable()
Declaration
OnEntityPostInit(IGameManager, IEntity)
Declaration
public void OnEntityPostInit(IGameManager gameMgr, IEntity entity)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IEntity |
entity |
|
ResetAnimatorOverrideControllerOnIdle()
Declaration
public void ResetAnimatorOverrideControllerOnIdle()
ResetOverrideController()
Declaration
public void ResetOverrideController()
SetOverrideController(AnimatorOverrideController)
Declaration
public void SetOverrideController(AnimatorOverrideController newOverrideController)
Parameters
Type |
Name |
Description |
AnimatorOverrideController |
newOverrideController |
|
SetState(AnimatorState)
Declaration
public void SetState(AnimatorState newState)
Parameters
Implements
IEntityPostInitializable