Esempio n. 1
0
        /// <summary>
        /// 根据实例化对象直接获取离线数据
        /// </summary>
        /// <param name="obj">GameObject</param>
        /// <returns></returns>
        public OfflineData FindOfflineData(GameObject obj)
        {
            OfflineData data   = null;
            TResouceObj resObj = null;

            mResouceObjDic.TryGetValue(obj.GetInstanceID(), out resObj);
            if (resObj != null)
            {
                data = resObj.OffData;
            }
            return(data);
        }
 public void Reset()
 {
     Crc            = 0;
     CloneObj       = null;
     Clear          = true;
     Guid           = 0;
     ResItem        = null;
     Already        = false;
     SetSceneParent = false;
     DealFinish     = null;
     Param1         = null;
     Param2         = null;
     Param3         = null;
     OffData        = null;
 }