public void SetCard(CardId card, int index) { CardVisual cardVisual = index switch { 0 => leftCard, 1 => middleCard, 2 => rightCard, _ => null }; cardsForSale[index] = card; if (card == CardId.None) { cardVisual.Hide(); } else { cardVisual.ShowCard(card.Data()); cardVisual.Show(); } cardVisual.GetNode <SmartText>("Text").BbcodeText = $"[center]{card.Data().MonPrice} [img]res://Assets/Sprites/GUI/mon_icon.png[/img][/center]"; }