Esempio n. 1
0
 public void AddModifier(StatAddRule modifier)
 {
     if (this.additions.Add(modifier))
     {
         modifier.PropertyChanged += this.onModifierChanged;
         Notify("Value");
     }
 }
Esempio n. 2
0
 public void RemoveModifier(StatAddRule modifier)
 {
     if (this.additions.Remove(modifier))
     {
         modifier.PropertyChanged -= this.onModifierChanged;
         Notify("Value");
     }
 }