private void ShowConfiguredGunShopItemPanel(GunShopItem item) { gunShopItemBuyPanel.SetSelectedGunShopItemIcon(weaponCollection.GetWeaponIcon(item.GetWeaponType())); if (item.IsOwned()) { ConfigureWeaponUpgradePanel(item); panelsMenager.OnlyShowWeaponUpgradePanel(); } else { ConfigureBuyPanel(item); panelsMenager.OnlyShowBuyWeaponPanel(); } }
private void RefreshGunShopItemsIcon(GunShopItem item) { item.GetButtonChildrenImage().color = item.IsOwned() ? ownedGunShopItemButtonImageColor : notOwnedGunShopItemButtonImageColor; }