private void OnSongDone(MSongDone msg) { if (msg.songIndex == playSong.song) { stars.EnableTap(); } }
public void Init(Messenger msg) { this.msg = msg; curSong = -1; mSongDone = new MSongDone(); songs = new List <AudioClip>(16); msg.AddListener <MPlaySong>(OnPlaySong); msg.AddListener <MStopSong>(OnStopSong); mSetupAudioSession = new SetupAudioSession(); mSetupAudioSession.Start(); }