// Update is called once per frame void Update() { timer += Time.deltaTime; timerReloading += Time.deltaTime; if (Input.GetButton("Fire1") && timer >= timeBetweenShots && AmmoManager.ammoCount > 0 && !Reloading && Reloaded) { Shooting = true; Shoot(); } if (AmmoManager.ammoCount <= 0) { reloadManager.OutOfAmmo(); } if (Input.GetButton("Reload")) { Reloading = true; ReloadAmmo(); } //if (timer >= timeBetweenShots * effectsDisplayTime) //{ // DisableEffects(); // } }