コード例 #1
0
 private void Awake()
 {
     dropdown.value     = PlayerPrefs.HasKey(Constants.LANGUAGEINDEXSELECTED) ? PlayerPrefs.GetInt(Constants.LANGUAGEINDEXSELECTED) : 0;
     saveLoadService    = new SaveLoadService();
     sceneLoaderService = new SceneLoaderService();
     btnContinue.SetActive(saveLoadService.CheckExistSave());
 }
コード例 #2
0
 public void LoadSavedGame()
 {
     if (saveLoadService.CheckExistSave())
     {
         PlayerPrefs.SetInt(Constants.NEWGAME, 0);
         sceneLoaderService.LoadScene(SceneNames.MAIN_SCENE);
     }
 }