protected void CloseShop() { MenuHeader.OnInventoryClicked -= OpenInventory; CategorySelector.ClearCategory(); ShopGrid.ClearGrid(); StoreManager.Clear(); MessageController.Clean(); }
public void OnSelectCategory(string s) { ShopGrid.ClearGrid(); Item[] items = StoreManager.GetItemFromCategory(s); if (items == null) { return; } foreach (Item item in items) { ShopGrid.AddItem(item, OnSelectItem); } }