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

@@ -83,7 +83,7 @@ namespace BITFALL.Entities.Equipment.Melee
public override void OnStateEntry(IState old)
{
base.OnStateEntry(old);
meleeController.animator.Play(BITConstant.Player.Attack);
meleeController.UnityEntity.Invoke(Constant.Animation.Play,BITConstant.Player.Attack);
}
public override void OnStateUpdate(float deltaTime)
{
@@ -100,7 +100,7 @@ namespace BITFALL.Entities.Equipment.Melee
public override void OnStateEntry(IState old)
{
base.OnStateEntry(old);
meleeController.animator.Play(BITConstant.Player.Charging);
meleeController.UnityEntity.Invoke(Constant.Animation.Play,BITConstant.Player.Charging);
}
public override void OnStateUpdate(float deltaTime)
@@ -127,7 +127,7 @@ namespace BITFALL.Entities.Equipment.Melee
public override void OnStateEntry(IState old)
{
base.OnStateEntry(old);
meleeController.animator.Play(BITConstant.Player.HeavyAttack);
meleeController.UnityEntity.Invoke(Constant.Animation.Play,BITConstant.Player.HeavyAttack);
_playerMovement.Stamina -= meleeController.melee.HeavyAttackStaminaCost;
}
}
@@ -143,7 +143,7 @@ namespace BITFALL.Entities.Equipment.Melee
{
base.OnStateEntry(old);
_interval.Reset();
meleeController.animator.Play(BITConstant.Player.Blocking);
meleeController.UnityEntity.Invoke(Constant.Animation.Play,BITConstant.Player.Blocking);
}
public override void OnStateUpdate(float deltaTime)
{