private GunType(Firerate firerate, Damage damage, Spread spread, bool autoFiring, bool shootThroughEverything) { Firerate = firerate; Cooldown = FirerateMap[firerate]; Damage = damage; Spread = spread; SpreadCount = SpreadCountMap[spread]; SpreadAmount = SpreadAmountMap[spread]; HasAutoFire = autoFiring; CanShootThroughEverything = shootThroughEverything; }
public static GunType Create(Firerate firerate, Damage damage, Spread spread, bool autoFiring, bool shootThroughEverything) { return(new GunType(firerate, damage, spread, autoFiring, shootThroughEverything)); }