Beispiel #1
0
 private void Update()
 {
     if (!playerHealthManager.IsAlive() || PauseManager.IsGamePaused())
     {
         return;
     }
     SetLastDirection();
     SetIdleAnimation();
     PlayRunAnimation();
 }
 private bool CanCast()
 {
     return(playerManaManager.GetCurrentMana() > 40 && Time.time >= nextCastTime && playerHealthManager.IsAlive());
 }
 private bool CanAttack()
 {
     return(Time.time >= nextAttackTime && PlayerStats.instance.stamina >= 40 && playerHealthManager.IsAlive());
 }