Exemple #1
0
 void SpecialShoot()
 {
     if (activeSecodarySkill != null)
     {
         if (Input.GetButtonDown("Secondary") &&
             lastSpecialShootTime + activeSecodarySkill.Cooldown < Time.time &&
             currentMana >= activeSecodarySkill.ManaCost)
         {
             currentMana -= activeSecodarySkill.ManaCost;
             activeSecodarySkill.Cast(this);
             lastSpecialShootTime = Time.time;
         }
     }
 }