update di chuyển debug jump
This commit is contained in:
@@ -25,7 +25,7 @@ namespace OnlyScove.Scripts
|
||||
|
||||
public override void Enter()
|
||||
{
|
||||
stateMachine.Anim.SetTrigger(fallHash);
|
||||
stateMachine.AnimationHandler.SafeSetTrigger(fallHash);
|
||||
stateMachine.Input.OnDodgeEvent += OnThrustPressed;
|
||||
stateMachine.Input.OnSprintEvent += OnAirDash;
|
||||
}
|
||||
@@ -50,6 +50,12 @@ namespace OnlyScove.Scripts
|
||||
|
||||
if (stateMachine.IsGrounded)
|
||||
{
|
||||
// Landing Reset Animator
|
||||
stateMachine.AnimationHandler.SafeSetBool("IsJumping", false);
|
||||
stateMachine.AnimationHandler.SafeSetBool("IsFalling", false);
|
||||
stateMachine.AnimationHandler.SafeResetTrigger("Jump");
|
||||
stateMachine.AnimationHandler.SafeResetTrigger("Fall");
|
||||
|
||||
// Landing Shake
|
||||
if (!stateMachine.WasGrounded && stateMachine.VelocityY < -1f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user