Beispiel #1
0
        public override IEnumerator OnLoad(Request request)
        {
            yield return(StartCoroutine(base.OnLoad(request)));

            SShop sShop = new SShop();

            yield return(StartCoroutine(sShop.Download(ShopAsset.Url, App.Util.Global.versions.shop, (AssetBundle assetbundle) => {
                ShopAsset.assetbundle = assetbundle;
                ShopCacher.Instance.Reset(ShopAsset.Data.shopItems);
                ShopAsset.Clear();
            })));

            App.Model.Master.MShopItem.ShopType type = request.Get <App.Model.Master.MShopItem.ShopType>("type");
            typeIndex = System.Array.FindIndex(types, t => t == type);
            ScrollViewSets();
            yield return(0);
        }