void Load() { if (file != null && file != "") { SaveTheGame.LoadTheGame(Application.persistentDataPath + "/SavedGames/" + file); } }
public MainWindow() { InitializeComponent(); GameAreaScreen = new GameArea(); //GameAreaVisual = new GameAreaVisual(); GameController = new GameController(this); ChooseSaveToLoadScreen = new ChooseSaveToLoad(); SaveTheGameScreen = new SaveTheGame(); LifeGameWindow.DataContext = GameController; Update(); }
void Save() { SaveTheGame.Save(controller.GetComponent <ControllerScript> (), emeth.GetComponent <EmethScript> (), Inventory, Table); Loadingtext.SetActive(true); }