I was trying to follow the manual to save and load the game using an action.
The manual suggest to use the following command:
GameObject.FindWithTag(Tags.persistentEngine).GetComponent<SaveSystem>().LoadGame (0);
But this raises the following error:
Assets/AdventureCreator/Scripts/Actions/ActionSavedGame.cs(51,23): error CS1525: Unexpected symbol `saveSys'
I'm using Load and Save, but the commands are: "SaveSaveGame" and "LoadSaveGame").
Am I doing some errors here?
Comments
Thanks for pointing that out - the functions were made static recently, and the manual will have to be updated.
You simply need:
SaveSystem.LoadGame (0);