IEnumerator WaitBeforeStopRecording() { yield return(new WaitForSeconds(recordTime)); doneRecording = true; player1Trigger.CancelRecording(); }