private void Awake() { if (Instance == null) { Instance = this; } }
public void GetScore(int number) { score += number * number; if (MainAudioManager) { MainAudioManager.PlayClearSweetAudio(); } }
// Start is called before the first frame update void Start() { audioManger = GameObject.FindGameObjectWithTag("SoundController").GetComponent <MainAudioManager>(); }