![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Functionality for the health potion object that spawns after breaking a pot. This script simply invokes an event and destroys the object when the player enters the trigger zone.
Documentation updated 3/5/2024
Events | |
static Action | potionPickedUp |
Triggers when the player enters the trigger zone. | |
Private Member Functions | |
void | OnTriggerEnter2D (Collider2D col) |
Invoke potionPickedUp and destroy the object when the player enters the trigger zone. | |
|
private |
Invoke potionPickedUp and destroy the object when the player enters the trigger zone.
|
static |
Triggers when the player enters the trigger zone.