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); }
public TimeOfDayChangeEvent(Enums.eTimeOfDay tod) { TimeOfDay = tod; }