Пример #1
0
    public override bool IsDone()
    {
        if (mRequest == null)
        {
            if (mLoaded != null && mLoaded.IsDone())
            {
                if (string.IsNullOrEmpty(mLoaded.error))
                {
                    mRequest = mLoaded.assetBundle.LoadAssetAsync(mAssetName, mType);
                }
                else
                {
                    mLoadError = mLoaded.error;
                    Debug.LogError(mLoadError);
                    return(true);
                }
            }
        }

        return(mRequest != null && mRequest.isDone);
    }