Class CarLightsController
This class is used to control the lights of the car. It is used to turn on and off the headlights and brake lights.
Namespace: YACC.Controllers
Assembly: .dll
Syntax
public class CarLightsController : MonoBehaviour
Fields
| Name | Description |
|---|---|
| actionRefLights | |
| brakeColorIntensity | The intensity of the brake lights. |
| brakeLights | Reference to any Light object in your car that you want to switch on. |
| brakeMaterial | |
| brakingColor | The color of the brake lights. |
| headlightColor | The color of the headlights. |
| headlightColorIntensity | The intensity of the headlights. |
| headlightLights | Reference to any Light object in your car that you want to switch on. |
| headlightMaterial | |
| headlightsOn | Flag to set if either the headlights are on or off. |
Methods
| Name | Description |
|---|---|
| ToggleHeadlights() |