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