void OnEnable() { if (_resource != null && _week != null) { GetWeek.Initialize(); GetResource.Initialize(); _eventControl.Initialize(); } else { throw new NullReferenceException($"_resource, _week NullRerenceException"); } StartCoroutine(GetWeek.EWeekProcess()); StartCoroutine(GetResource.EResourceProcess()); }
void OnDisable() { StopCoroutine(GetWeek.EWeekProcess()); StopCoroutine(GetResource.EResourceProcess()); }