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 }
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(); } } }
private void OnApplicationFocus(bool hasFocus) { if (_reachabilityChanged) { return; } #if !UNITY_EDITOR if (_step < 4) { StartUpdate(); } else if (_step == 4) { if (hasFocus) { _downloader.Restart(); } } #endif }
public void Restart() { _downloader.Restart(); }