private void UnInit()
 {
     StopAllCoroutines();
     _handler       = null;
     _localFileList = null;
     IsDone         = false;
 }
        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);
        }
 private void Init(string sName, string localFileList, IFSLocalCheckerDelegate handler)
 {
     _name             = sName;
     _fileListFileName = localFileList;
     _handler          = handler;
     IsDone            = false;
     _isLocalOk        = true;
     _localHackedCnt   = 0;
 }
示例#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();
     }
 }