public void saveGame() { safeClass.Start(); safeClass.Save(); allItems.SaveStolenItems(); SavedGame(safeClass); tempLoad = Load(); }
public void loading() { safeClass = tempLoad; safeClass.Start(); safeClass.played(); safeClass.Load(); allItems.LoadItems(); }
void Start() { safeClass = new SaveClass(); if (File.Exists(Application.dataPath + "/SavedGame.xml")) { tempLoad = Load(); } else { tempLoad = new SaveClass(); } tempLoad.played(); safeClass.Start(); }