Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
        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);
            }
        }