public void OnClear() { OnMessage("数据清除完毕"); OnProgress(0); _versions.Clear(); _downloader.Clear(); Assets.Clear(); if (listener != null) { listener.OnClear(); } if (Directory.Exists(_savePath)) { Directory.Delete(_savePath, true); } }
public void OnClear() { OnMessage("数据清除完毕"); OnProgress(0); Reset(); _downloader.Clear(); _step = Step.Wait; _reachabilityChanged = false; Assets.Clear(); if (listener != null) { listener.OnClear(); } if (Directory.Exists(_savePath + Versions.Filename)) { Directory.Delete(_savePath + Versions.Filename, true); } }
public void OnClear() { OnMessage("数据清除完毕"); OnProgress(0); _versions.Clear(); _downloader.Clear(); _step = STEP_IDLE; _reachabilityChanged = false; Assets.Clear(); if (listener != null) { listener.OnClear(); } if (Directory.Exists(_savePath)) { Directory.Delete(_savePath, true); } }