Exemplo n.º 1
0
        /// <summary>
        /// 加载多个资源(可等待)
        /// </summary>
        public static async Task <object[]> AwaitLoadAssets(this ResourceComponent self, string[] assetNames)
        {
            object[] assets = new object[assetNames.Length];;

            for (int i = 0; i < assetNames.Length; i++)
            {
                assets[i] = await self.AwaitLoadAsset <object>(assetNames[i]);
            }

            return(assets);
        }