void Awake() { source = GetComponent <AudioSource>(); recordCounter = GetComponent <recordCounter>(); if (Microphone.devices.Length <= 0) { //Throw a warning message at the console if there isn't Debug.LogWarning("Microphone not connected!"); } }
void Awake() { audioRecording = GetComponent <audioSnippet>(); audioDisplay = GetComponent <audioRecordDisplay>(); audioCounter = GetComponent <recordCounter>(); }