private void OnTimeChanged(GameEvents.TimeOfDayChangeEvent e)
    {
        // TODO
        // BOTW-style weather where it predicts the weather a few hours at a time and display it on the UI
        // then it changes and it will have effects on things like enemy spawns, player stamina(?), or something
        // should be dependant on current planet/level the player is on (set of weather parmas generated for the level, like likelihood of precipitation, length of days(!!), day/night temps (temperature stuff?!), etc)

        Debug.LogFormat(e.TimeOfDay.ToString());
    }
示例#2
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);
 }