private void SetBulletMultiplier(TypeOfBoost type) { damageMultiplier = type switch { TypeOfBoost.Boosted => 2, TypeOfBoost.Default => 1, _ => 1 }; } }
public Ammo(TypeOfBoost boostType, IAmmo ammoType) { this.boostType = boostType; this.ammoType = ammoType; SetBulletMultiplier(TypeBoost); }