Example #1
0
 public void removeAreaBuff(GameObject go)
 {
     stats = go.GetComponent <isStats>();
     if (stats != null)
     {
         stats.LowerStat(Name, buffPercentage);
         buffed = false;
     }
 }
Example #2
0
 public void AreaBuff()
 {
     if (hasBuffed.Contains(recipient))
     {
         return;
     }
     else
     {
         stats = recipient.GetComponent <isStats>();
         if (stats != null)
         {
             stats.BuffStat(Name, buffPercentage);
             hasBuffed.Add(recipient);
             times.Add(0.0f);
         }
     }
 }
Example #3
0
 public void Buff(isStats s)
 {
     stats = s;
     stats.BuffStat(Name, buffPercentage);
     buffed = true;
 }