C# Class RedBlueGames.Tools.TimeManager

Class that handles setting TimeScale to 0 and back, properly handling multiple requests to pause and unpause.
Show file Open project: redbluegames/rb-unity-tools

Public Methods

Method Description
RequestLowLevelPause ( ) : void

Requests a low level pause, used for debugging

RequestLowLevelUnpause ( ) : void

Requests a low level unpause

RequestPause ( ) : void

Pauses the game, or increments the pause counter if it's already paused.

RequestUnpause ( ) : void

Attempts to unpause the game. Once all requests to pause have been unwound, the game unpauses.

Private Methods

Method Description
ResolveTimeScale ( ) : void

Method Details

RequestLowLevelPause() public static method

Requests a low level pause, used for debugging
public static RequestLowLevelPause ( ) : void
return void

RequestLowLevelUnpause() public static method

Requests a low level unpause
public static RequestLowLevelUnpause ( ) : void
return void

RequestPause() public static method

Pauses the game, or increments the pause counter if it's already paused.
public static RequestPause ( ) : void
return void

RequestUnpause() public static method

Attempts to unpause the game. Once all requests to pause have been unwound, the game unpauses.
public static RequestUnpause ( ) : void
return void