示例#1
0
        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);
        }
示例#2
0
        private float GetAssetProgress(string assetPath)
        {
            DatabaseAsyncOperation operation = operations[assetPath] as DatabaseAsyncOperation;

            return(operation.GetProgress());
        }