private DatabaseAssetNode CreateAssetNode(string assetPath) { DatabaseAssetNode assetNode = assetNodePool.Get(); assetNode.InitNode(assetPath); assetNodeDic.Add(assetPath, assetNode); DatabaseAsyncOperation operation = new DatabaseAsyncOperation(assetPath); operations.Add(assetPath, operation); return(assetNode); }
private float GetAssetProgress(string assetPath) { DatabaseAsyncOperation operation = operations[assetPath] as DatabaseAsyncOperation; return(operation.GetProgress()); }