Example #1
0
 public void StartCasting()
 {
     if (_isCasting || !_player_Controller.ChangeMP(-_castCost))
     {
         return;
     }
     _isCasting = true;
     _playerAnimator.SetBool("Casting", true);
 }
 public void StartCasting()
 {
     if (isCasting || !playerController.ChangeMP(-castCost))
     {
         return;
     }
     isCasting = true;
     if (grounded)
     {
         playerAnimator.SetBool("Casting", true);
     }
     else
     {
         playerAnimator.SetBool("JumpCasting", true);
     }
 }