コード例 #1
0
ファイル: Handler.cs プロジェクト: g6general/WheelFighter
        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);
            }
        }