Class TimescaleManager
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
TimescaleManager
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
public class TimescaleManager : NetworkedManagerBase<TimescaleManager>, ILogicUpdate
Properties
desiredTimescale
Declaration
public float desiredTimescale { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
effectTimescale
Timescale multiplier of DewEffect (FxStopTime and such) induced changes.
Declaration
public float effectTimescale { get; }
Property Value
| Type | Description |
|---|---|
| float |
shouldTimeBeSlowedBySpecialMenu
Declaration
public bool shouldTimeBeSlowedBySpecialMenu { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
ChangeTimescale(float, float)
Lowest of all changes will apply.
Declaration
public void ChangeTimescale(float timescale, float duration)
Parameters
| Type | Name | Description |
|---|---|---|
| float | timescale | |
| float | duration |
FrameUpdate()
Declaration
public override void FrameUpdate()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
OnStartServer()
Declaration
public override void OnStartServer()
Overrides
TimescaleChanged(float, float)
Declaration
public void TimescaleChanged(float oldVal, float newVal)
Parameters
| Type | Name | Description |
|---|---|---|
| float | oldVal | |
| float | newVal |