Beispiel #1
0
 protected void OnTimeOfDayChanged(GameEvents.TimeOfDayChangeEvent e)
 {
     // if you're playing and it changes to night, turn the torches on
     m_TimeOfDay = e.TimeOfDay;
     m_LightSourceObj.SetActive(m_TimeOfDay == Enums.eTimeOfDay.Sunset);
 }
Beispiel #2
0
 public TimeOfDayChangeEvent(Enums.eTimeOfDay tod)
 {
     TimeOfDay = tod;
 }