-
Notifications
You must be signed in to change notification settings - Fork 0
GameController
GameController class controls game's runtime. It's responsible for saving and loading game, changing actual level etc.
Type: void
Params: none
Description: Start method is responsible for setting up object.
Type: static void
Params: None
Description: Reloads current room
Type: void
Params: string saveName
Description: saves current game state, and gives it saveName identifier for further load.
Type: void
Params: string saveName
Description: loads state of game saved with saveName identifier.
Throws: UnityException - when saved game does not exists
Type: void
Params: None
Description: Changes game state to paused.
Type: void
Params: None
Description: Changes game state to running.
Type: void
Params: None
Description: Ends the game.
Type: static void
Params: string key
Description: Sets collected flag for item to true.
Type: void
Params: None
Description: Ends the game, when player reaches endgoal.
Type: SaveDataDto
Params: None
Description: Returns current transfer object with data about current play session. Used for saving.
Type: void
Params: SaveDataDto dto, string saveName
Description: Sets data from DTO. saveName parameter is used to continue loading, when change of room is necessary.
Type: void
Params: None
Description: Main loop proceeded in every game frame.