Exemplo n.º 1
0
 void Subscribe()
 {
     audio     = GameObject.Find("Music").GetComponent <AudioEventManager> ();
     this.keys = keys;
     for (var i = 0; i < keys.Length; i++)
     {
         audio.Subscribe(keys[i], this);
     }
 }