private void Update() { if (microphone.GetAveragedVolume() > 0.01) { inputManager.Shoot(); } //if (Input.GetButton("Fire2")) // inputManager.Shoot(); if (Input.GetKeyDown(KeyCode.R)) { inputManager.RestartGame(); } }