-
Notifications
You must be signed in to change notification settings - Fork 0
Item Events
You can add new item events in the script "ItemEvents".
Example:
public void NewItemEvent(Item item)
{
// Item event...
}
The item events are located in the game object "ItemEvents"
Click on an item, afterwards, you have to decide when this event should be triggered:
Simply, click on the "+" sign to add a new event, and the "-" sign to remove the currently selected event from the list. After you added an event, the window should look like this:
Next to "None (Object)", you have to press the small circle. Select the Prefab "ItemEvents". For function, you have to select the method which should be executed on this event. After you selected a method, there should appear a field that says "None (Item)". In there, you have to insert the item itself again (File).
Execute the event, after the hamster is equipped with this item.
Execute the event, after the hamster unequipped this item.
Execute the event, after the hamster used this item (Consumable). Not compatible with "Equippable" items.