Example #1
0
 public void AddDebuff(Debuff newDebuff)
 {
     if (debuffs.Contains(newDebuff))
     {
         startTimes[newDebuff] = Time.time;
         procTimes[newDebuff]  = 0f;
     }
     else
     {
         debuffs.Add(newDebuff);
         startTimes[newDebuff] = Time.time;
         procTimes[newDebuff]  = 0f;
     }
 }
Example #2
0
 void Expire(Debuff expiredDebuff)
 {
     expiredDebuff.Revert(this);
     debuffs.Remove(expiredDebuff);
     startTimes.Remove(expiredDebuff);
 }