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