Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
TimeOfDayController Class Reference

Detailed Description

Handles changing the background image when the time of day is updated in the DataManager.

Documentation updated 1/29/2024

Author
Stephen Nuttall
Todo

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.
 

Member Function Documentation

◆ SetTimeOfDay()

void TimeOfDayController.SetTimeOfDay ( TimeOfDay newTimeOfDay)

Disables all active background objects an enables the one corresponding to the set time of day.

Parameters
newTimeOfDay0 = day time, 1 = night time, anything else = error.

Member Data Documentation

◆ DayBckgrnd

GameObject TimeOfDayController.DayBckgrnd

Reference to the child object holding the sprite for the daytime background.

◆ NightBckgrnd

GameObject TimeOfDayController.NightBckgrnd

Reference to the child object holding the sprite for the nighttime background.


The documentation for this class was generated from the following file: