Exemplo n.º 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");
     }
 }
Exemplo n.º 2
0
        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);
        }