using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace RND { public class MarketUI : Window { private int SectionsCount => _sections.Count; private Transform _shopParent; private Transform _tabsParent; private GameObject _previewContainer; private ShopTab _tabUITemplate; private readonly List _tabs = new List(); private readonly List _sections = new List(); private Market _market; private int _activeSection = -1; private Button _closeButton; protected override void OnInit() { _shopParent = transform.FindRecursive("SubWindowsContainer"); _tabsParent = transform.FindRecursive("TabsContainer"); _tabUITemplate = _tabsParent.GetChild(0).GetComponent(); _tabUITemplate.gameObject.SetActive(false); _previewContainer = Assets.Create("UI/ItemPreviews/ItemPreviewContainer"); OnClose += AfterCloseAction; _closeButton = transform.FindRecursive("CloseButton").GetComponent