1
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BITFALL.Player.Animation
|
||||
{
|
||||
void OnMovementStateChanged(IEntityMovementState oldState, IEntityMovementState newState);
|
||||
}
|
||||
public class PlayerAnimationController : StateBasedComponent<IPlayerAnimationState>
|
||||
public class PlayerAnimationController : StateBasedBehavior<IPlayerAnimationState>
|
||||
{
|
||||
|
||||
[SerializeField] internal UnityAnimator animator;
|
||||
@@ -25,7 +25,7 @@ namespace BITFALL.Player.Animation
|
||||
public override void OnAwake()
|
||||
{
|
||||
base.OnAwake();
|
||||
_movement = entity.Get<IEntityMovement>();
|
||||
_movement = UnityEntity.Get<IEntityMovement>();
|
||||
_movement.OnStateChanged += OnMovementStateChanged;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user