Пример #1
0
        /// <summary>
        ///使用offlinedata节省GetComponent开销来获取组件
        /// </summary>
        /// <param name="gameObject"></param>
        /// <returns></returns>
        public OfflineData.OfflineData FindOfflineData(GameObject gameObject)
        {
            OfflineData.OfflineData offlineData = null;
            if (ObjectItemsInstanceTempDic.TryGetValue(gameObject.GetInstanceID(), out ObjectItem objectItem))
            {
                offlineData = objectItem.OfflineData;
            }

            return(offlineData);
        }
Пример #2
0
 public void Reset()
 {
     Crc                = 0;
     CloneObj           = null;
     isClear            = true;
     Guid               = 0;
     PrimitiveAssetItem = null;
     isAlreadyRelease   = false;
     IsSetSceneParent   = false;
     outerCallBack      = null;
     paramList          = null;
     OfflineData        = null;
 }