RPGlite Starter Kit  1.0.0
Starting RPG projects made easy.
Loading...
Searching...
No Matches
RPGlite.Shop Class Reference
Inheritance diagram for RPGlite.Shop:
[legend]

Additional Inherited Members

- Public Member Functions inherited from RPGlite.Storage
bool Toggle ()
 Toggles storage on or off.
 
bool SetInventory (bool state)
 Sets storage on or off.
 
void AddMoney (int amount)
 Add or subtract money from this storage.
 
void UpdateMoney (int newMoneyAmount)
 Set a specific amount of money for this storage.
 
void UpdateInventory ()
 Reloads all items based on list of itemIds.
 
void ClearInventory ()
 Removes all inventory items.
 
void PlayInteractionSound (float pitchOffset=0.0f)
 Play interaction sound from this inventory, with fixed random pitch variation.
 
- Public Attributes inherited from RPGlite.Storage
GameObject itemUIPrefab
 
List< int > itemIds
 
int money = 0
 
TMP_Text money_text
 
GameObject inventoryList
 
- Protected Member Functions inherited from RPGlite.Storage
void Start ()
 
- Protected Attributes inherited from RPGlite.Storage
bool inventoryOn = true
 
- Properties inherited from RPGlite.Storage
bool InventoryOn [get, set]
 Define if the storage is showing or not.
 

The documentation for this class was generated from the following file: