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