void Update() { if ((Input.GetKey(KeyCode.Z)) && (shootnow <= Time.time || shootnow == 0f)) { SoundManagerScript.PlaySounnd("fire"); shootnow = deleyFire + Time.time; Shooting(); } }