Exemplo n.º 1
0
 protected void CloseShop()
 {
     MenuHeader.OnInventoryClicked -= OpenInventory;
     CategorySelector.ClearCategory();
     ShopGrid.ClearGrid();
     StoreManager.Clear();
     MessageController.Clean();
 }
Exemplo n.º 2
0
    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);
        }
    }