![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script goes on parents of objects that you want to be active during only day or only night. This script has to go on the parent for two reasons:
Documentation updated 2/13/2025
Public Attributes | |
TimeOfDay | activeTime |
The time of day that the object will be active during. | |
Private Member Functions | |
void | Awake () |
Set references. | |
void | Update () |
Private Attributes | |
DataManager | dataManager |
Reference to the DataManager. | |
bool | activeState = true |
The current state of this object's children. It will change according to the time of day. Children should start off active. | |
|
private |
Set references.
|
private |
|
private |
The current state of this object's children. It will change according to the time of day. Children should start off active.
TimeOfDay DayNight_Objects.activeTime |
The time of day that the object will be active during.
|
private |
Reference to the DataManager.