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

Detailed Description

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:

  1. Efficiency: one script can control many objects
  2. If this script disables the object that it is attached to, it cannot reactive itself

Documentation updated 2/13/2025

Author
Alexander Art

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.
 

Member Function Documentation

◆ Awake()

void DayNight_Objects.Awake ( )
private

Set references.

◆ Update()

void DayNight_Objects.Update ( )
private

Member Data Documentation

◆ activeState

bool DayNight_Objects.activeState = true
private

The current state of this object's children. It will change according to the time of day. Children should start off active.

◆ activeTime

TimeOfDay DayNight_Objects.activeTime

The time of day that the object will be active during.

◆ dataManager

DataManager DayNight_Objects.dataManager
private

Reference to the DataManager.


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