void Start() { secondsBetweenShots = 60 / rpm; if (GetComponent <LineRenderer>()) { tracer = GetComponent <LineRenderer> (); } currentAmmoInMag = ammoPerMag; if (gui) { gui.SetAmmoInfo(totalAmmo, currentAmmoInMag); } }