Exemple #1
0
 public void OnRelease()
 {
     uniqueID = -1;
     handler  = null;
     complete = null;
     userData = null;
 }
Exemple #2
0
        public int InstanceAsset(string[] addresses, OnAssetBridgeLoadComplete complete, SystemObject userData = null)
        {
            AssetBridgeData bridgeData = bridgeDataPool.Get();

            bridgeData.uniqueID = idCreator.GetNextID();
            bridgeData.complete = complete;
            bridgeData.userData = userData;

            AssetHandler handler = assetService.InstanceBatchAssetAsync(addresses, null, null, null, OnBatchAssetComplete, loaderPriority, bridgeData.uniqueID);

            bridgeData.handler = handler;
            bridgeDataDic.Add(bridgeData.uniqueID, bridgeData);

            return(bridgeData.uniqueID);
        }