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