Exemplo n.º 1
0
 private void UnInit()
 {
     StopAllCoroutines();
     _handler       = null;
     _localFileList = null;
     IsDone         = false;
 }
Exemplo n.º 2
0
        public static IFSLocalChecker Create(string sName, string localFileList, IFSLocalCheckerDelegate handler)
        {
            IFSLocalChecker ret = null;
            GameObject      go  = new GameObject("IFSLocalChecker" + sName);

            ret = go.ExtAddComponent <IFSLocalChecker>(true);
            ret.Init(sName, localFileList, handler);
            return(ret);
        }
Exemplo n.º 3
0
 private void Init(string sName, string localFileList, IFSLocalCheckerDelegate handler)
 {
     _name             = sName;
     _fileListFileName = localFileList;
     _handler          = handler;
     IsDone            = false;
     _isLocalOk        = true;
     _localHackedCnt   = 0;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 开始一个本地文件列表检查 完整性
 /// </summary>
 /// <param name="sName"></param>
 /// <param name="localFileList"></param>
 /// <param name="handler"></param>
 public void BeginLocalChecker(string sName, string localFileList, IFSLocalCheckerDelegate handler)
 {
     for (int i = _localCheckers.Count - 1; i >= 0; --i)
     {
         if (_localCheckers[i].Name.Equals(sName))
         {
             JW.Common.Log.LogE("Repeat BeginLocalChecker:" + sName);
             return;
         }
     }
     IFSLocalChecker newChecker = IFSLocalChecker.Create(sName, localFileList,handler);
     if (newChecker != null)
     {
         newChecker.gameObject.transform.parent = this.transform;
         _localCheckers.Add(newChecker);
         newChecker.StartCheck();
     }
 }