コード例 #1
0
 // Note: The Mercenary class doesn't implement IInventory so the bonuses are only removed to the list
 // Unequips a bonus item
 public void UnequipBonus(Bonus bonus)
 {
     // Remove the bonus from the list
     bonuses.Remove(bonus);
 }
コード例 #2
0
 // Note: The Mercenary class doesn't implement IInventory so the bonuses are only removed to the list
 // Equips a bonus item
 public void EquipBonus(Bonus bonus)
 {
     // Add the bonus to the list
     bonuses.Add(bonus);
 }