![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Used by a trigger zone on moving platforms and spring tiles to detect movable entities. Objects that have colliders but should not be pushed around, such as tilemaps or GroundDetectors, should not get detected.
Documentation updated 12/25/2024
Public Attributes | |
List< GameObject > | entitiesInDetector |
List of all objects standing in the trigger zone. Must have Rigidbody2D's attached and not be a tilemap. | |
Private Member Functions | |||
void | OnTriggerEnter2D (Collider2D collision) | ||
Runs when a collider stands on the object. Adds any valid entities that are touching the trigger zone to the list.
| |||
void | OnTriggerExit2D (Collider2D collision) | ||
Runs when a collider gets off of the object. Removes any objects that are no longer touching the trigger zone from the list.
| |||
|
private |
Runs when a collider stands on the object. Adds any valid entities that are touching the trigger zone to the list.
collision |
|
private |
Runs when a collider gets off of the object. Removes any objects that are no longer touching the trigger zone from the list.
collision |
List<GameObject> MovableEntityDetector.entitiesInDetector |
List of all objects standing in the trigger zone. Must have Rigidbody2D's attached and not be a tilemap.