internal void SetPlaylist(string player, string playlistName, float fade) { MusicPlayerRuntime runtime = playerRuntimes[player]; Playlist playlist = bank.GetPlaylist(playlistName); runtime.SetPlaylist(playlist, fade); }
private void Update() { float dt = Time.unscaledDeltaTime; Dictionary <string, MusicPlayerRuntime> .Enumerator enumerator = playerRuntimes.GetEnumerator(); while (enumerator.MoveNext()) { MusicPlayerRuntime runtime = enumerator.Current.Value; runtime.Update(dt); } }
public void Init(MusicBank bank_) { playerRuntimes.Clear(); bank = bank_; foreach (MusicPlayer player in bank.Players) { MusicPlayerRuntime runtime = new MusicPlayerRuntime(transform, player); if (player.Playlist != null) { runtime.SetPlaylist(player.Playlist); } playerRuntimes.Add(player.Name, runtime); } }
internal void Stop(string player) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.Stop(); }
internal void Play(string player, float fade) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.Play(fade); }
internal void Play(string player) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.Play(); }
internal void Seek(string player, string track, float fade) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.Seek(track, fade); }
internal void Next(string player) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.Next(); }
internal void UnPause(string player, float fade) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.UnPause(fade); }
internal void UnPause(string player) { MusicPlayerRuntime runtime = playerRuntimes[player]; runtime.UnPause(); }