Torch Brightness System - AlexisBliesener/Bewitched GitHub Wiki
This system makes the light change when the door of a room is opened (when the player killed all the enimes in that room) and this this is attached to the torch prefab (Prefabs/Environment/Prison Environment Level 1/Art Space/Torch Light.prefab).
Setting Up the System
-
The system can be disabled if you don't need it by unchecking
Change Light Color After Door Opened -
For the room controller, if you selected
Use the room that the torch is in (RoomName)then it will use the room that the torch is in it (and if you move the torch to another room youdon't have to change the room as this will detect it automatically but make sure the torch is in the room bounds (the green box) -
You can override that by selecting another room (overriding this will make the torch always chosen to the given room)
Buttons
-
Import torch values from Light ComponentThis will copy the values from the light component and from the (Minimum Intensity, Max Intensity, Minimum Variance, Maximum Variance, Minimum Cycle Duration, Maximum Cycle Duration) -
Apply light settings after door opened to all torches in the SAME roomThis will do as it says (obviously) so you can just edit a single torch to the setting you want and then click this button and it will apply these settings to all the torches that are in the same room -
Apply light settings after door opened to all torches in ALL roomsThis is the same as before but this will apply it to all the torches in the scene -
What these buttons change
Apply light settings after door opened to all torches in the SAME roomandApply light settings after door opened to all torches in ALL roombuttons will change the values of (Color after door opened, Range after door opened, Temprature after door opened, Minimum intensity after door opened, Maximum intensity after door opened, Minimum variance after door opened, Minimum cycle duration after door opened, Maximum cycle duration after door opened)