public void Constructor(CategorySO categorySO)
        {
            _categoryData = categorySO;
            var prefab   = Resources.Load <GameObject>(_pathToViewButton);
            var category = GameObject.Instantiate(prefab, _parentForViewButton.transform).GetComponent <ViewButton>();

            category.Constructor(_categoryData.Icon);
            category.TabButton += GenerateCategoryItems;
        }
 public void Constructor(CategorySO categoryData)
 {
     _itemsData = categoryData.ItemData;
     foreach (var item in _items)
     {
         item.OnDelete();
     }
     _items.Clear();
     foreach (var data in categoryData.ItemData)
     {
         var item = _factory.Create(data);
         _items.Add(item);
     }
 }