![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Handles changing the background image when the time of day is updated in the DataManager.
Documentation updated 1/29/2024
Add support for different background in different levels.
Add support for eclipses and blood moons.
Public Member Functions | |
void | SetTimeOfDay (TimeOfDay newTimeOfDay) |
Public Attributes | |
GameObject | DayBckgrnd |
Reference to the child object holding the sprite for the daytime background. | |
GameObject | NightBckgrnd |
Reference to the child object holding the sprite for the nighttime background. | |
void TimeOfDayController.SetTimeOfDay | ( | TimeOfDay | newTimeOfDay | ) |
Disables all active background objects an enables the one corresponding to the set time of day.
newTimeOfDay | 0 = day time, 1 = night time, anything else = error. |
GameObject TimeOfDayController.DayBckgrnd |
Reference to the child object holding the sprite for the daytime background.
GameObject TimeOfDayController.NightBckgrnd |
Reference to the child object holding the sprite for the nighttime background.