Add this to a GameObject with a Collider2D set to Trigger to have it kill the player on touch.
More...
|
virtual void | OnTriggerEnter2D (Collider2D collider) |
| When a collision is triggered, check if the thing colliding is actually the player. If yes, kill it. More...
|
|
Add this to a GameObject with a Collider2D set to Trigger to have it kill the player on touch.
◆ OnTriggerEnter2D()
virtual void MoreMountains.CorgiEngine.KillPlayerOnTouch.OnTriggerEnter2D |
( |
Collider2D |
collider | ) |
|
|
protectedvirtual |
When a collision is triggered, check if the thing colliding is actually the player. If yes, kill it.
- Parameters
-
The documentation for this class was generated from the following file: