This commit is contained in:
CortexCore
2023-10-30 01:25:53 +08:00
parent add6d0cab3
commit 18f664a545
125 changed files with 3529 additions and 700 deletions

View File

@@ -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;
}