Class ShopUI
It is in charge of all ShopItemUI creation, so that the player can buy items from the store.
Namespace: AutoBattleFramework.Shop.ShopGUI
Assembly: cs.temp.dll.dll
Syntax
public class ShopUI : MonoBehaviour
Fields
ItemList
Parent panel where all ShopItemUI creations will be entered.
Declaration
public Image ItemList
Field Value
| Type | Description |
|---|---|
| Image |
SellForText
Panel that appears when an item will be sold.
Declaration
public Image SellForText
Field Value
| Type | Description |
|---|---|
| Image |
Methods
AddItem(ShopItemInfo, Int32, ShopManager)
Instantiate a new ShopItemUI from an item and assign ItemList as its parent.
Declaration
public void AddItem(ShopItemInfo item, int cost, ShopManager shop)
Parameters
| Type | Name | Description |
|---|---|---|
| ShopItemInfo | item | Item information to create the UI. |
| Int32 | cost | Cost that the item will have. |
| ShopManager | shop | ShopSystem reference. |
ClearList()
Destroy all current ShopItemUI's.
Declaration
public void ClearList()
GetCurrentShop()
Returns a list of all currently created ShopItemUIs.
Declaration
public List<ShopItemUI> GetCurrentShop()
Returns
| Type | Description |
|---|---|
| List<ShopItemUI> | List of all current ShopItemUI. |