LightFlicker
A class in Root.Township, the global namespace.
Client-side effect that drifts a light's colour towards random colours from a gradient. Removes itself on a headless server.
- Listed in Global namespace: I to L
- Inherits or implements
MonoBehaviour - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
LightFlicker() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private Gradient colors | Gradient the random colours are picked from. |
private float lerpSpeed | How fast the colour drifts. |
private PlatformLight targetLight | The light on this object. |