VariableIntensityPlayerLight
A class in Root.Township, Features.
Light on the player that brightens with the number of orbs carried. Reached through PlayerController.PlayerLight.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
VariableIntensityPlayerLight() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private float maxIntensity | Highest intensity allowed (default 2.5). |
private float minIntensity | Lowest intensity; at or below this the light is turned off. |
private PlatformLight platformLight | The PlatformLight being driven. |
private Color playerLightColorWithOrb | Colour used while carrying orbs (default green). |
private float playerLightIntensityPerOrb | Intensity added per orb carried (default 0.5). |
Methods
Used in
Members of other types that take, return or hold a VariableIntensityPlayerLight: