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;
                        }
                    }
                });
            }
        }
Ejemplo n.º 2
0
 public ShopThingDataInGame(ShopThingDataInGame prod) : base(prod)
 {
     shopType = prod.shopType;
 }