Class: TimescaleManager
- Namespace:
Global - Assembly:
Dew.Core.dll - Inheritance / Derived: DewNetworkBehaviour →
NetworkedManagerBase→ TimescaleManager
csharp
public class TimescaleManager : NetworkedManagerBase<TimescaleManager>, ILogicUpdateProperties
| Name | Declaration | Description |
|---|---|---|
desiredTimescale | public float desiredTimescale { get; set; } | |
effectTimescale | public float effectTimescale { get; } | Timescale multiplier of DewEffect (FxStopTime and such) induced changes. |
shouldTimeBeSlowedBySpecialMenu | public bool shouldTimeBeSlowedBySpecialMenu { get; } |
Methods
ChangeTimescale(float, float)
Lowest of all changes will apply.
csharp
public void ChangeTimescale(float timescale, float duration)Parameters:
| Name | Type | Description |
|---|---|---|
timescale | float | |
duration | float |
FrameUpdate()
csharp
public override void FrameUpdate()OnDestroy()
csharp
protected override void OnDestroy()OnStartServer()
csharp
public override void OnStartServer()TimescaleChanged(float, float)
csharp
public void TimescaleChanged(float oldVal, float newVal)Parameters:
| Name | Type | Description |
|---|---|---|
oldVal | float | |
newVal | float |