Пример #1
0
 void DoSkill()
 {
     if (currentSkill.Skill.Execute(currentSkill.SkillStats))
     {
         ISkillCooldownable c = currentSkill.SkillStats as ISkillCooldownable;
         if (c != null)
         {
             StartCoroutine(WaitForCooldown(c.Cooldown));
         }
     }
 }
Пример #2
0
 void DoConsumable()
 {
     consumableCallbackExpected = true;
     if (currentConsumable.Consumable.Execute(currentConsumable.ConsumableStats))
     {
         ISkillCooldownable c = currentConsumable.ConsumableStats as ISkillCooldownable;
         if (c != null)
         {
             StartCoroutine(WaitForCooldown(c.Cooldown));
         }
     }
     else
     {
         consumableCallbackExpected = false;
     }
 }