Пример #1
0
        public AssetAsyncLoadHandle LoadAsync(string path, Type typ)
        {
            var handle = new AssetAsyncLoadHandle(Container, m_provider, path);

            handle.Execute(typ);
            return(handle);
        }
Пример #2
0
        /// <summary>
        /// 只用于异步加载场景
        /// </summary>
        /// <param name="path">路径</param>
        public AssetAsyncLoadHandle LoadSceneAsync(string path, bool add)
        {
            path = m_provider.FormatScenePath(path);
            var handle = new AssetAsyncLoadHandle(Container, m_provider, path);

            m_provider.ProvideSceneAsync(handle, add);
            return(handle);
        }