// Use this for initialization void Start() { roomManager = PlayerRoomManager.instance; roomManager.Register(this); trackToAudioSourceMap.Add(track.Drums, new List <AudioSource>() { drums }); trackToAudioSourceMap.Add(track.Percs, new List <AudioSource>() { percs }); trackToAudioSourceMap.Add(track.Melody, new List <AudioSource>() { melody }); trackToAudioSourceMap.Add(track.Lead, new List <AudioSource>() { lead }); trackToAudioSourceMap.Add(track.Bass, new List <AudioSource>() { bass }); trackToAudioSourceMap.Add(track.Ambient, ambient); background.Play(); currentState = defaults; }
void Start() { if (instance != null) { Debug.LogError("There can only be one PlayerRoomManager!"); return; } instance = this; }
public void LifeOver() { m_instance = null; }