public void Upgrade(Upgades type) { switch ((int)type) { case (int)Upgades.Armor: _bonusArmor++; break; case (int)Upgades.Damage: _bonusDamage+=2; break; case (int)Upgades.HP: _bonusHP+=5; break; default: break; } }
public void Upgrade(Upgades type) { switch ((int)type) { case (int)Upgades.Armor: _bonusArmor++; break; case (int)Upgades.Damage: _bonusDamage += 2; break; case (int)Upgades.HP: _bonusHP += 5; break; default: break; } }