コード例 #1
0
        private void CreateBoostersPanel()
        {
            FooterBoosterHelper[] fBH = BoostersParent.GetComponentsInChildren <FooterBoosterHelper>();
            foreach (FooterBoosterHelper item in fBH)
            {
                DestroyImmediate(item.gameObject);
            }
            BoostersHolder bHolder = BubblesPlayer.Instance.BoostHolder;

            foreach (var item in bHolder.Boosters)
            {
                item.CreateFooterBooster(BoostersParent, footerBoosterPrefab, () =>
                {
                    int id = item.bData.ID;
                    InGamePurchaser iGP    = InGamePurchaser.Instance;
                    ShopThingDataInGame sd = iGP.GetProductById(id.ToString());
                    if (BubblesGuiController.Instance)
                    {
                        switch (sd.shopType)
                        {
                        case InGameShopType.None:
                            break;

                        case InGameShopType.BoosterMulticolor:
                            BubblesGuiController.Instance.ShowBoosterMulticolorShop();
                            break;

                        case InGameShopType.BoosterFireBall:
                            BubblesGuiController.Instance.ShowBoosterFireBallShop();
                            break;

                        case InGameShopType.BoosterEyeBall:
                            BubblesGuiController.Instance.ShowBoosterEyeBallShop();
                            break;

                        default:
                            break;
                        }
                    }
                });
            }
        }
コード例 #2
0
ファイル: ShopThingHelper.cs プロジェクト: zjsjmvn/Tap-Match
 public ShopThingDataInGame(ShopThingDataInGame prod) : base(prod)
 {
     shopType = prod.shopType;
 }