public void Use(Skill obj) { if (CoolDownTimer.Usable) { SkillRepository.GetAction(Name).Invoke(obj); CoolDownTimer.Reset(); } else { var secs = CoolDownTimer.SecondsRemaining.ToString("0.0"); RPG.Notify("cannot use " + Name + " for " + secs + "s"); } }
public bool Use() { if (!Usable) { return(false); } if (CoolDownTimer.Usable) { ItemRepository.GetAction(Name).Invoke(); CoolDownTimer.Reset(); return(true); } var secs = CoolDownTimer.SecondsRemaining.ToString("0.0"); RPG.Notify("cannot use " + Name + " for " + secs + "s"); return(false); }