Class TimeScalePauseStrategy
Pause strategy that uses Unity's Time.timeScale to pause the game.
Implements
Inherited Members
Namespace: Serenity.GameMode.Infrastructure.Strategies
Assembly: Serenity.GameMode.Infrastructure.dll
Syntax
public class TimeScalePauseStrategy : IPauseStrategy
Remarks
Stores the previous time scale to restore it when unpausing.
Constructors
TimeScalePauseStrategy()
Declaration
public TimeScalePauseStrategy()
Methods
ApplyPause()
Applies pause by setting Time.timeScale to 0.
Declaration
public void ApplyPause()
RemovePause()
Removes pause by restoring the previous Time.timeScale.
Declaration
public void RemovePause()