Exemplo n.º 1
0
 private void RecastAbility(AbilityKey key)
 {
     AbilityRecast?.Invoke(this, key);
     AbilitiesOnRecast[key]--;
     if (AbilitiesOnRecast[key] == 0)
     {
         StartCooldownTimer(key);
     }
 }
Exemplo n.º 2
0
 private void RecastAbility(AbilityKey key)
 {
     AbilityRecast?.Invoke(this, key);
     AbilitiesOnRecast[key]--;
     if (AbilitiesOnRecast[key] == 0)
     {
         if (AbilityCastModes[key].RecastMode.RecastOnKeyUp)
         {
             SelectedAbility = AbilityKey.None;
         }
         StartCooldownTimer(key);
     }
 }