public T GetResult()
        {
            var result = AsyncOperationExtensions.GetResult <T>(_op);

            if (result == null)
            {
                throw new UnityAssetLoadException(typeof(T));
            }

            return(result);
        }
示例#2
0
        public UnityEngine.Object GetResult()
        {
            var result = AsyncOperationExtensions.GetResult <UnityEngine.Object>(_op);

            if (result == null)
            {
                throw new UnityAssetLoadException();
            }

            return(result);
        }