Beispiel #1
0
        private void Awake()
        {
            if (Instance == null)
            {
                Instance = this;
                DontDestroyOnLoad(gameObject);
            }
            else
            {
                gameObject.SetActive(false);
                Destroy(gameObject);
            }

            CurrentSave = SaveUtility.LoadGame(SavePath);
        }
Beispiel #2
0
 private Save Load(string path)
 {
     return(SaveUtility.LoadGame(path));
 }
Beispiel #3
0
 public Save Load()
 {
     CurrentSave = SaveUtility.LoadGame(SavePath);
     return(CurrentSave);
 }