RandomState
A static class in Root.Township, the global namespace.
Static stack for Unity's global random state, so code can seed UnityEngine.Random for a block and restore it after. Use the returned IDisposable in a using.
- Listed in Global namespace: Q to R
- Nested types
Disposer
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private static RandomState.Disposer disposer | Shared disposable that calls Pop. |
private static Stack<Random.State> stack | Saved random states. |
Properties
| Member | What it is |
|---|---|
static int Height { get; } | How many states are pushed. |