protected override void Start() { //Calls start function of Shooting script base.Start(); damage = mech.damage; range = mech.range; fireRate = mech.fireRate; breakContactAtThisRange = range; doubleStats = GetComponent <DoubleStatsSpecial>(); health = GetComponent <Health>(); ammo = GetComponent <AmmoHandling>(); scoreHandler = health._scoreHandler; }
protected override void Start() { base.Start(); damage = mecha.damage; range = mecha.range; fireRate = mecha.fireRate; bulletPool = transform.Find("PlayerBulletPool"); health = GetComponent <Health>(); ammo = GetComponent <AmmoHandling>(); scoreHandler = health._scoreHandler; if (GetComponent <DoubleStatsSpecial>() != null) { doubleStats = GetComponent <DoubleStatsSpecial>(); } }