Skip to main content

TradeConfiguration

A class in Root.Township, Alta.Trading.

Holds references to a trade vendor's price buttons. In this build it does nothing with them.

Constructors​

MemberWhat it is
TradeConfiguration()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

5 private and internal fields
MemberWhat it is
private PhysicalButton coinDownButton to lower the coin amount.
private PhysicalButton coinUpButton to raise the coin amount.
private PhysicalButton itemDownButton to lower the item amount.
private PhysicalButton itemUpButton to raise the item amount.
private TradeVendor vendorThe vendor these buttons belong to.

Methods​

MemberWhat it is
override void Initialize()Finds the TradeVendor on the same object.
override void InitializeAsServer(SpawnData spawnData)Only calls the base method.