// Update is called once per frame void Update() { if (GlobalControl.GetButtonRT(playerNum) && readyToShoot) { Fire(); readyToShoot = false; Invoke("ResetReadyToShoot", delay); } }