예제 #1
0
 // 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;
 }
예제 #2
0
 void Start()
 {
     if (instance != null)
     {
         Debug.LogError("There can only be one PlayerRoomManager!");
         return;
     }
     instance = this;
 }
예제 #3
0
 public void LifeOver()
 {
     m_instance = null;
 }