private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { gameObject.SetActive(false); Destroy(gameObject); } CurrentSave = SaveUtility.LoadGame(SavePath); }
private Save Load(string path) { return(SaveUtility.LoadGame(path)); }
public Save Load() { CurrentSave = SaveUtility.LoadGame(SavePath); return(CurrentSave); }