Ejemplo n.º 1
0
 public override void OnCollisionEnter(PlayerControllerFSM player, Collision other)
 {
     player.TransitionToState(player.idle);
 }
Ejemplo n.º 2
0
 public override void EnterState(PlayerControllerFSM player)
 {
     // Apply jump force when we enter this state.
     player.Jump();
     player.SetFacialExpression(player.jumpingSprite);
 }