示例#1
0
    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!");
        }
    }
示例#2
0
 void Awake()
 {
     audioRecording = GetComponent <audioSnippet>();
     audioDisplay   = GetComponent <audioRecordDisplay>();
     audioCounter   = GetComponent <recordCounter>();
 }