Table of Contents

Class ShopViewScreen

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class ShopViewScreen : MonoBehaviour, ITimeOfDayListener
Inheritance
ShopViewScreen
Implements
Inherited Members
Extension Methods

Constructors

ShopViewScreen()

public 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

public bool 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

public int 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()

public void Awake()

ChangeCategory(ShopItemCategory)

public void ChangeCategory(ShopItemCategory argument)

Parameters

argument ShopItemCategory

CloseShop()

public void CloseShop()

DayTimeChanged(TimeOfDay)

public void DayTimeChanged(TimeOfDay timeOfDay)

Parameters

timeOfDay TimeOfDay

DestroyCategoryGrid()

public void DestroyCategoryGrid()

DestroyItemGrid()

public void DestroyItemGrid()

DrawCategories()

public void DrawCategories()

DrawItems()

public void DrawItems()

Init(ShopHandler)

public void Init(ShopHandler handler)

Parameters

handler ShopHandler

InitListeners()

public void InitListeners()

OnCartUpdated()

public void OnCartUpdated()

OnDestroy()

public void OnDestroy()

OnUpdate()

public void OnUpdate()

OpenShop()

public void 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()

public void UpdateView()

UpdateViewScreen()

public void UpdateViewScreen()