Class ShopInteractibleItem
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class ShopInteractibleItem : Interactable
- Inheritance
-
ShopInteractibleItem
- Inherited Members
-
- Extension Methods
-
Constructors
ShopInteractibleItem()
public ShopInteractibleItem()
Fields
defaultIcon
public Sprite defaultIcon
Field Value
- Sprite
m_DiscountObject
[SerializeField]
public GameObject m_DiscountObject
Field Value
- GameObject
m_Handler
public static ShopHandler m_Handler
Field Value
- ShopHandler
m_ItemNameText
[SerializeField]
public TMP_Text m_ItemNameText
Field Value
- TMP_Text
m_Name
Field Value
- string
m_NumberInBagObject
[SerializeField]
public GameObject m_NumberInBagObject
Field Value
- GameObject
m_NumberInBagText
[SerializeField]
public TMP_Text m_NumberInBagText
Field Value
- TMP_Text
m_NumberInCart
public int m_NumberInCart
Field Value
- int
m_Price
Field Value
- int
m_PriceText
[SerializeField]
public TMP_Text m_PriceText
Field Value
- TMP_Text
m_Valid
Field Value
- bool
m_icon
Field Value
- Image
Properties
ItemID
public byte ItemID { get; set; }
Property Value
- byte
Methods
AddOneToCartVisual()
public void AddOneToCartVisual()
CartTextUpdated()
public void CartTextUpdated()
ClearCartVisual()
public void ClearCartVisual()
Interact(Player)
public override void Interact(Player player)
Parameters
player
Player
IsValid(Player)
public override bool IsValid(Player player)
Parameters
player
Player
Returns
- bool
Setup(ShopHandler, ShopItem)
public void Setup(ShopHandler handler, ShopItem item)
Parameters
handler
ShopHandler
item
ShopItem