Пример #1
0
    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());
    }
Пример #2
0
 void OnDisable()
 {
     StopCoroutine(GetWeek.EWeekProcess());
     StopCoroutine(GetResource.EResourceProcess());
 }