示例#1
0
        public static void OnSelectShopCell()
        {
            ShopData.GetCellByType(ShopData.Cells.Cell_11).GetComponent <Image>().color = ShopData.NonActiveCellColor;
            ShopData.GetCellByType(ShopData.Cells.Cell_12).GetComponent <Image>().color = ShopData.NonActiveCellColor;
            ShopData.GetCellByType(ShopData.Cells.Cell_21).GetComponent <Image>().color = ShopData.NonActiveCellColor;
            ShopData.GetCellByType(ShopData.Cells.Cell_22).GetComponent <Image>().color = ShopData.NonActiveCellColor;

            ShopData.GetCurrentCell().GetComponent <Image>().color = ShopData.SelectedCellColor;
            ShopData.SelectedShopCell = ShopData.CurrentShopCell;

            var bullet = ShopData.GetBulletByCell(ShopData.CurrentShopCell);

            if (ShopData.IsAvailableBullet(bullet))
            {
                Events.LaunchEvent(Events.Types.SelectCurrentBullet, Scenes.ActiveScene);
            }
        }