// Use this for initialization void Start() { audioDirector = (AudioDirectorScript)GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript"); audioListener = (AudioListener)GameObject.FindWithTag("AudioDirector").GetComponent("AudioListener"); genralEditorScript = (GeneralEditorScript)GetComponent("GeneralEditorScript"); liveAudioInputSelector = GetComponent <LiveAudioInputSelectorScript>(); cameraTypeSelector = GetComponent <CameraTypeSelectorScript>(); if (isActive) { Screen.showCursor = true; Screen.lockCursor = false; } }
// Use this for initialization void Start() { audioDirector = (AudioDirectorScript) GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript"); audioListener = (AudioListener) GameObject.FindWithTag("AudioDirector").GetComponent("AudioListener"); genralEditorScript = (GeneralEditorScript)GetComponent("GeneralEditorScript"); liveAudioInputSelector = GetComponent<LiveAudioInputSelectorScript>(); cameraTypeSelector = GetComponent<CameraTypeSelectorScript>(); if(isActive) { Screen.showCursor = true; Screen.lockCursor = false; } }