コード例 #1
0
 public void IncreaseCurrentStacks()
 {
     if (!IsAtMaximumStacks())
     {
         SourceAbilityBuff.RemoveBuffFromAffectedUnit(affectedUnit, this);
         CurrentStacks++;
         SourceAbilityBuff.ApplyBuffToAffectedUnit(affectedUnit, this);
         HasStacksToUpdate = true;
     }
 }
コード例 #2
0
 public void RemoveBuff()
 {
     SourceAbilityBuff.RemoveBuffFromAffectedUnit(affectedUnit, this);
 }
コード例 #3
0
 private void UpdateBuffOnaffectedUnit(float oldValue, float newValue)
 {
     SourceAbilityBuff.RemoveBuffFromAffectedUnit(affectedUnit, this);
     SourceAbilityBuff.ApplyBuffToAffectedUnit(affectedUnit, this);
 }