void Awake() { if (inst == null) { inst = this; } addHitUI = GameObject.Find("Canvas").GetComponent <PlayerScoreUI>(); }
public void Awake() { lineRenderer = GetComponent <LineRenderer>(); beginUIElements.SetActive(true); aboutUIElements.SetActive(false); endUIElements.SetActive(false); playerScoreUI = endUIElements.GetComponentInChildren <PlayerScoreUI>(); microphoneData = Singleton <MicrophoneData> .Instance; microphoneData.SetAudioSource(GetComponent <AudioSource>()); microphoneData.SetMicrophone(0); calibratePitch = false; calibrationAverage = 0; calibrationSamples = 0; menuGameInstance = Instantiate(menuGame); starGeneratorInstance = Instantiate(starGenerator); starGeneratorInstance.transform.parent = mainCamera.transform; }