public override void OnLoadSystem() { if (baseSeed == 0) { baseSeed = DateTime.Now.GetHashCode(); seed = new System.Random(baseSeed); } onDayTick.AddListener(OnNewDay); }
private void Start() { weatherEvent.AddListener(OnWeatherChanged); timeEvent.AddListener(OnDayPassed); }
private void OnEnable() { weatherEvent.AddListener(OnWeatherChanged); timeEvent.AddListener(OnDayPassed); }
/// <summary> /// Removes a day from the counter, and invokes the event if possible /// Reason for the returning is for saving. /// </summary> /// <returns> Has the event attached to the Day Counter been invoked? </returns> private void Start() { eventObject?.AddListener(OnDayTick); }