logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class TimeScalePauseStrategy

    Pause strategy that uses Unity's Time.timeScale to pause the game.

    Inheritance
    object
    TimeScalePauseStrategy
    Implements
    IPauseStrategy
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()

    Implements

    IPauseStrategy
    In this article
    © 2026 Serenity. All Rights Reserved