TimeScroller
A class in Root.Township, the global namespace.
Lets a CaptainsWheel scrub the time of day: turning the wheel shifts GameTimeManager's private dayProgress by reflection.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
TimeScroller() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private FieldInfo fieldInfo | Reflection handle for GameTimeManager.dayProgress. |
private GameTimeManager timeManager | The time manager to change. |
private CaptainsWheel wheel | The wheel that drives it. |