Example #1
0
 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");
     }
 }