private void Start() { string checkForSave = SaveMaster.GetString("scene"); if (string.IsNullOrEmpty(checkForSave)) { return; } else { SaveMaster.SyncLoad(); } }
public void LoadButton() { SaveMaster.SetSlot(0, false); string sceneName = SaveMaster.GetString("scene"); if (string.IsNullOrEmpty(sceneName)) { Debug.Log("No level set for this game."); SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); } else { // Load the saved scene name SceneManager.LoadScene(sceneName); } }
private void Start() { checkforSave = SaveMaster.GetString("scene"); }