![]() |
RPGlite Starter Kit
1.0.0
Starting RPG projects made easy.
|
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
GameObject | itemUIPrefab |
List< int > | itemIds |
int | money = 0 |
TMP_Text | money_text |
GameObject | inventoryList |
![]() | |
void | Start () |
![]() | |
bool | inventoryOn = true |
![]() | |
bool | InventoryOn [get, set] |
Define if the storage is showing or not. | |