Loading...
Searching...
No Matches
PixelCrushers.AutoSaveLoad Class Reference

Auto-saves when the game closes and auto-loads when the game opens. More...

Inheritance diagram for PixelCrushers.AutoSaveLoad:
Collaboration diagram for PixelCrushers.AutoSaveLoad:

Public Member Functions

void Restart (string startingSceneName)
 Clears the saved game data and restarts the game at a specified scene.
 

Public Attributes

int saveSlotNumber = 1
 
int[] dontSaveInScenes = new int[0]
 
bool loadOnStart = true
 
bool saveOnQuit = true
 
bool saveOnPause = true
 
bool saveOnLoseFocus = false
 

Detailed Description

Auto-saves when the game closes and auto-loads when the game opens.

Useful for mobile games.

Member Function Documentation

◆ Restart()

void PixelCrushers.AutoSaveLoad.Restart ( string  startingSceneName)
inline

Clears the saved game data and restarts the game at a specified scene.

Parameters
startingSceneName

Member Data Documentation

◆ dontSaveInScenes

int [] PixelCrushers.AutoSaveLoad.dontSaveInScenes = new int[0]

◆ loadOnStart

bool PixelCrushers.AutoSaveLoad.loadOnStart = true

◆ saveOnLoseFocus

bool PixelCrushers.AutoSaveLoad.saveOnLoseFocus = false

◆ saveOnPause

bool PixelCrushers.AutoSaveLoad.saveOnPause = true

◆ saveOnQuit

bool PixelCrushers.AutoSaveLoad.saveOnQuit = true

◆ saveSlotNumber

int PixelCrushers.AutoSaveLoad.saveSlotNumber = 1

The documentation for this class was generated from the following file: