DelayEnable
A class in Root.Township, the global namespace.
Enables a target Behaviour after a random delay when the object starts, so many copies don't all switch on at once.
- Listed in Global namespace: C to D
- Inherits or implements
MonoBehaviour - Nested types
DelayMode
Constructors
| Member | What it is |
|---|---|
DelayEnable() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private AnimationCurve curve | Curve mode: maps a random 0 to 1 value to the delay in seconds. |
private float maximumTime | Range mode: longest delay in seconds. |
private float minimumTime | Range mode: shortest delay in seconds. |
private DelayEnable.DelayMode mode | Whether the delay is picked from a range or from the curve. |
private Behaviour target | The behaviour to enable. |