void FixedUpdate() { if (rb2D.velocity.y < -0.1f && !IsFalling() && !climber.IsClimbing()) { previousState = CurrentState; CurrentState = VerticalMovement.Constants.States.Falling; } }
void Start() { CurrentState = VerticalMovement.Constants.States.Standing; previousState = CurrentState; }