![]() |
RPGlite Starter Kit
1.0.0
Starting RPG projects made easy.
|
Public Member Functions | |
| void | EmitEquippedItem (ItemUI item) |
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 | |
| EquippedEvent | equippedItemEvent = new EquippedEvent() |
Public Attributes inherited from RPGlite.Storage | |
| GameObject | itemUIPrefab |
| List< int > | itemIds |
| int | money = 0 |
| TMP_Text | money_text |
| GameObject | inventoryList |
Additional Inherited Members | |
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. | |
|
inline |
| EquippedEvent RPGlite.Inventory.equippedItemEvent = new EquippedEvent() |