public void OnBeatDivisionChange(BeatDivisionChange message) { List <AudioClip> updatePlaylist = null; switch (message.m_BeatDivision) { case 8: case 4: updatePlaylist = m_QuarterBeatTest; break; case 2: updatePlaylist = m_HalfBeatTest; break; case 1: updatePlaylist = m_WholeBeatTest; break; default: break; } ; if (updatePlaylist != null) { RequestPlaylistChange playlistMessage = new RequestPlaylistChange(); playlistMessage.Sender = this.gameObject; playlistMessage.m_NextPlaylist = updatePlaylist; MessageBus.Instance.SendMessage(playlistMessage); } }
public void ChangePlayList(RequestPlaylistChange message) { m_QueuedList = message.m_NextPlaylist; }