Beispiel #1
0
 public void TryCast()
 {
     if (GameManager.GameRunning)
     {
         if (abilityEnabled)
         {
             if (gameObject.activeInHierarchy)
             {
                 if (cooldownTimer <= 0.0f)
                 {
                     if (heroInfo.UseMana(abilityCost))
                     {
                         AbilityActivate();
                     }
                 }
             }
         }
     }
 }