コード例 #1
0
        private void ShowConfiguredGunShopItemPanel(GunShopItem item)
        {
            gunShopItemBuyPanel.SetSelectedGunShopItemIcon(weaponCollection.GetWeaponIcon(item.GetWeaponType()));

            if (item.IsOwned())
            {
                ConfigureWeaponUpgradePanel(item);
                panelsMenager.OnlyShowWeaponUpgradePanel();
            }
            else
            {
                ConfigureBuyPanel(item);
                panelsMenager.OnlyShowBuyWeaponPanel();
            }
        }
コード例 #2
0
 private void RefreshGunShopItemsIcon(GunShopItem item)
 {
     item.GetButtonChildrenImage().color = item.IsOwned() ? ownedGunShopItemButtonImageColor : notOwnedGunShopItemButtonImageColor;
 }