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

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