예제 #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());
 }