public override void Update(PlayerControllerFSM player) { // Do big jump if we jump from ducking. if (Input.GetButtonDown("Jump")) { player.SitUp(); player.Jump(player.jumpBoostMultiplier); player.TransitionToState(player.jumping); } if (Input.GetButtonUp("Duck")) { player.TransitionToState(player.idle); player.SitUp(); } }
public override void EnterState(PlayerControllerFSM player) { // Apply jump force when we enter this state. player.Jump(); player.SetFacialExpression(player.jumpingSprite); }