void DoSkill() { if (currentSkill.Skill.Execute(currentSkill.SkillStats)) { ISkillCooldownable c = currentSkill.SkillStats as ISkillCooldownable; if (c != null) { StartCoroutine(WaitForCooldown(c.Cooldown)); } } }
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; } }