예제 #1
0
        private void OnApplicationFocus(bool hasFocus)
        {
            if (_reachabilityChanged || _step == STEP_IDLE)
            {
                return;
            }

#if UNITY_EDITOR
            return;
#else
            if (hasFocus)
            {
                MessageBox.CloseAll();
                if (_step < STEP_DOWNLOAD)
                {
                    StartUpdate();
                }
                else if (_step == STEP_DOWNLOAD)
                {
                    _downloader.Restart();
                }
            }
            else
            {
                if (_step == STEP_DOWNLOAD)
                {
                    _downloader.Stop();
                }
            }
#endif
        }
예제 #2
0
파일: Updater.cs 프로젝트: ymiakill/JEngine
        private void OnApplicationFocus(bool hasFocus)
        {
            if (_reachabilityChanged || _step == Step.Wait)
            {
                return;
            }

            if (hasFocus)
            {
                MessageBox.CloseAll();
                if (_step == Step.Download)
                {
                    _downloader.Restart();
                }
                else
                {
                    StartUpdate();
                }
            }
            else
            {
                if (_step == Step.Download)
                {
                    _downloader.Stop();
                }
            }
        }
예제 #3
0
        private void OnApplicationFocus(bool hasFocus)
        {
            if (_reachabilityChanged)
            {
                return;
            }
#if !UNITY_EDITOR
            if (_step < 4)
            {
                StartUpdate();
            }
            else if (_step == 4)
            {
                if (hasFocus)
                {
                    _downloader.Restart();
                }
            }
#endif
        }
예제 #4
0
파일: Updater.cs 프로젝트: Hengle/JEngine
 public void Restart()
 {
     _downloader.Restart();
 }