コード例 #1
0
 /**
  * All the level buttons will call this function, the parameter being the level of the button.
  * When called, this function will start the WordGame game loop and the new scene will load the level that was passed as a parameter.
  */
 public void levelButtonClick(int level)
 {
     MusicPlayer.instance.PlaySoundEffect(MusicPlayer.instance.menuEffect, 1);
     system.setStartingLevel(level);
     SceneManager.LoadScene("WordGameScene", LoadSceneMode.Single);
 }