예제 #1
0
파일: MainMenu.cs 프로젝트: aPisC/JxBP_2019
 public void NewGame()
 {
     SliderHandler.OpenScene(characterSprites, (i) => {
         if (i != -1)
         {
             SaveHandler.CreateNewSave(i);
             MapGenerator.saveid = i;
             Sprite[] ff         = new Sprite[1];
             ff[0] = FunfactSprites[Random.Range(0, FunfactSprites.Length)];
             DialogHandler.OpenDialogScene(ff, () => UnityEngine.SceneManagement.SceneManager.LoadScene("GameScene"), 0);
         }
         else
         {
             UnityEngine.SceneManagement.SceneManager.LoadScene("Menu");
         }
     });
 }