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