![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Used by pressure plates to detect entities standing on it and to activate/deactivate a connected object.
Documentation updated 12/22/2024
Public Attributes | |
GameObject | affectedObject |
The object that deactivates when touched by the pressure plate. | |
List< GameObject > | entitiesOnPlate |
List of entities standing on the pressure plate. | |
Private Member Functions | |||
void | Update () | ||
void | OnTriggerEnter2D (Collider2D collision) | ||
Runs when a collider touches the pressure plate. If it is a valid entity, add it to the list.
| |||
void | OnTriggerExit2D (Collider2D collision) | ||
Runs when a collider steps off of the pressure plate. Removes objects that are no longer on the pressure plate from the list.
| |||
|
private |
Runs when a collider touches the pressure plate. If it is a valid entity, add it to the list.
collision |
|
private |
Runs when a collider steps off of the pressure plate. Removes objects that are no longer on the pressure plate from the list.
collision |
|
private |
GameObject PressurePlate.affectedObject |
The object that deactivates when touched by the pressure plate.
List<GameObject> PressurePlate.entitiesOnPlate |
List of entities standing on the pressure plate.