Matthew Glos 9/12/25. More...


Data Structures | |
| class | LayerEventPair |
Public Types | |
| enum | CollisionType { Enter , Stay , Leave } |
Public Member Functions | |
| void | HandleCollision (int layer, CollisionType currentType) |
Matthew Glos 9/12/25.
General purpose script to detect collisions with objects of a particular layer and call a set of UnityEvents when those collisions occur.
Written to handle the player object colliding with objects with the Hazard tag to trigger the death sequence.
Attach to the object you'd like to detect the collisions, and make sure either a collision or trigger event can happend between the two objects
|
inline |