コード例 #1
0
 private void SetEvent(GameObject button, Game game)
 {
     button.GetComponent <Button>().onClick.AddListener(() =>
     {
         buttonClickSound.Play();
         Player.GetInstance().ActualGame = game;
         uI_Controller.switchScene(GetSceneName());
         LevelChooseInfos.chapterIndex = Player.GetInstance().AllChapter.IndexOf(game.Chapter);
     });
 }