private void Awake() { GetComponent <GUIButton>().onClick.AddListener(() => { SaveLoadSystem.SaveStash(); SaveLoadSystem.SaveGame(); LevelLoader.DestroyLevel(); SceneManager.LoadScene(SceneToLoad); }); }
private void Awake() { GetComponent <GUIButton>().onClick.AddListener(() => { SaveLoadSystem.SaveStash(); SaveLoadSystem.SaveGame(); LevelLoader.DestroyLevel(); SceneManager.LoadScene(SceneToLoad); }); }