void Start() { highestScore = PlayerPrefs.GetInt("highestScore"); pitchDetector = gameObject.AddComponent <PitchDetector>(); ScoreObject.SetActive(false); FreePlay(); }
// Start is called before the first frame update void Start() { pitchDetector = GameObject.FindGameObjectWithTag("Microphone").GetComponent <PitchDetector>(); }