Beispiel #1
0
 public void RemoveBonus(WeaponAttributeBonus bonus)
 {
     if (attributes.ContainsKey(bonus.type))
     {
         attributes[bonus.type].RemoveBonus(bonus);
     }
 }
Beispiel #2
0
 public void AddBonus(WeaponAttributeBonus bonus)
 {
     if (attributes.ContainsKey(bonus.type))
     {
         attributes[bonus.type].AddBonus(bonus);
     }
     else
     {
         Debug.Log("Does not contain key " + bonus.type);
     }
 }
Beispiel #3
0
 public void RemoveBonus(WeaponAttributeBonus bonus)
 {
     bonuses.Remove(bonus);
 }
Beispiel #4
0
 public void AddBonus(WeaponAttributeBonus bonus)
 {
     bonuses.Add(bonus);
 }