Example #1
0
 public void StartMusic(GlobalInfo.GameState gameState) {
     if(gameState == GlobalInfo.GameState.INGAME) {
         int randomSong = Random.Range(0, this.musicGame.Count);
         this._currentSong.clip = musicGame[randomSong] as AudioClip;
         this._currentSong.Play();
     } else if(gameState == GlobalInfo.GameState.MENU) {
         int randomSong = Random.Range(0, this.musicMenu.Count);
         this._currentSong.clip = musicMenu[randomSong] as AudioClip;
         this._currentSong.Play();
     }
 }
Example #2
0
 public void ChangeSkin(GlobalInfo.Skin skin) {
     this._hasSkinChanged = true;
     this._currentSkin = skin;
 }