Class ShopViewScreen
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class ShopViewScreen : MonoBehaviour, ITimeOfDayListener
- Inheritance
-
ShopViewScreen
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
ShopViewScreen()
Fields
excludeCategories
public List<ShopItemCategory> excludeCategories
Field Value
- List<ShopItemCategory>
m_CartNumberOfItemsText
[SerializeField]
public TextMeshProUGUI m_CartNumberOfItemsText
Field Value
- TextMeshProUGUI
m_CartValueText
[SerializeField]
public TextMeshProUGUI m_CartValueText
Field Value
- TextMeshProUGUI
m_CategoriesGrid
[SerializeField]
public Transform m_CategoriesGrid
Field Value
- Transform
m_CategoryCell
[SerializeField]
public GameObject m_CategoryCell
Field Value
- GameObject
m_CurrentCategoryNameText
[SerializeField]
public TextMeshProUGUI m_CurrentCategoryNameText
Field Value
- TextMeshProUGUI
m_CurrentCategoryScreenIndex
public ShopItemCategory m_CurrentCategoryScreenIndex
Field Value
- ShopItemCategory
m_Inited
Field Value
- bool
m_ItemCell
[SerializeField]
public GameObject m_ItemCell
Field Value
- GameObject
m_ItemsGrid
[SerializeField]
public Transform m_ItemsGrid
Field Value
- Transform
m_ItemsInShop
Field Value
- int
m_ItemsLocalized
public string m_ItemsLocalized
Field Value
- string
m_ShopHandler
public ShopHandler m_ShopHandler
Field Value
- ShopHandler
m_ShopItemToInteractable
public Dictionary<ShopItem, ShopInteractibleItem> m_ShopItemToInteractable
Field Value
- Dictionary<ShopItem, ShopInteractibleItem>
Properties
CurrentCategoryIndex
public ShopItemCategory CurrentCategoryIndex { get; }
Property Value
- ShopItemCategory
CurrentSelectedShopItem
public ShopItem CurrentSelectedShopItem { get; set; }
Property Value
- ShopItem
CurrentShopItems
public ShopItem[] CurrentShopItems { get; set; }
Property Value
- ShopItem[]
Methods
Awake()
ChangeCategory(ShopItemCategory)
public void ChangeCategory(ShopItemCategory argument)
Parameters
argument
ShopItemCategory
CloseShop()
DayTimeChanged(TimeOfDay)
public void DayTimeChanged(TimeOfDay timeOfDay)
Parameters
timeOfDay
TimeOfDay
DestroyCategoryGrid()
public void DestroyCategoryGrid()
DestroyItemGrid()
public void DestroyItemGrid()
DrawCategories()
public void DrawCategories()
DrawItems()
Init(ShopHandler)
public void Init(ShopHandler handler)
Parameters
handler
ShopHandler
InitListeners()
public void InitListeners()
OnCartUpdated()
public void OnCartUpdated()
OnDestroy()
OnUpdate()
OpenShop()
ResetScreenIndex()
public void ResetScreenIndex()
SetIndex(ShopItemCategory)
public void SetIndex(ShopItemCategory newIndex)
Parameters
newIndex
ShopItemCategory
SpawnCategoryCell(ShopItemCategory)
public void SpawnCategoryCell(ShopItemCategory category)
Parameters
category
ShopItemCategory
SpawnItemCell(ShopItem)
public void SpawnItemCell(ShopItem item)
Parameters
item
ShopItem
UpdateCartTexts()
public void UpdateCartTexts()
UpdateShopInteractablesInCart()
public void UpdateShopInteractablesInCart()
UpdateView()
UpdateViewScreen()
public void UpdateViewScreen()