Pause Level
v4.0
Pause Level
Variables
// The active pauseLevel
public int pauseLevel = 0;
// This value is set by the script, and records the most recent pauseLevel
[SerializeField] private int lastPauseLevel = 0;
// If not -1, when this script is awakened, game will pause to this level
public int pauseLevelOnAwake = -1;
// If not -1, game will pause to this level when we change scenes.
public int pauseLevelWhenSceneChanges = -1;
// If not -1, game will pause to this level when a new scene is loaded.
public int pauseLevelWhenNewSceneLoaded = -1;
// Gametime will not advance if pauseLevel >= this value.
public int stopTimeOnPauseLevel = 1;Methods
Examples
Last updated