Beispiel #1
0
 void OnMusicFinished(AudioPlayer player)
 {
     switch(player.id) {
         case "FailSong": PlayLastPlayer(); break;
         case "WinnerSong": PlayLastPlayer(); break;
         case "MainThemeSong": player.nextClip(); break;
     }
 }
Beispiel #2
0
 void OnMusicFinished(AudioPlayer player)
 {
     switch(player.id) {
         case "FailSong": player.Pause(); GetPlayerById("MainThemeSong").Play(); break;
         case "WinnerSong": player.Pause(); GetPlayerById("MainThemeSong").Play(); break;
         case "MainThemeSong": player.nextClip(); break;
     }
 }