public void OnRelease() { uniqueID = -1; handler = null; complete = null; userData = null; }
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); }