ShopButton

ShopButtoninherits from TradeButton

ShopButtoninherits sends Player Inputs like Pointer Enter, Pointer Exit, or Click Events to the Shop UI & Shop. It allows the interaction between the Shop and the Player, enabling the user to purchase Items by exchanging coins.


SHOP BUTTON

  • callToAction: Text to display on the Purchase Button

The rest of properties are part of TradeButton.

Getters | ShopButton.cs

ShopItemData

Returns the ShopItemData associated to the Button.

Functions | ShopButton.cs

AddAmount(int amount)

Increases Current Amount to be purchased.

ReduceAmount(int amount)

Decreases Current Amount to be purchased.

Last updated