WorkLight

VARIABLES

  • initiallyTurnedOn: If true, the lights will turn on, on starting the game

  • lights: Reference to all lights of the WorkLight. These well be turned on and off upon interacting

  • switchSFX: SFX To play when interacting with WorkLight


Functions | WorkLight.cs

SwitchLights()

Toggles WorkLight state to turn it on or off accordingly.

ShowToast(bool forceState, bool playAudio)

Turns lights on or off, but forces the state to be applied instead of relying on toggling it.

  • forceState: Turns the WorkLight on or off.

  • playAudio: If true, switchSFX will be played.

Last updated