Corgi Engine  v8.8
MoreMountains.CorgiEngine.KillPlayerOnTouch Class Reference

Add this to a GameObject with a Collider2D set to Trigger to have it kill the player on touch. More...

Inheritance diagram for MoreMountains.CorgiEngine.KillPlayerOnTouch:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Protected Member Functions

virtual void OnTriggerEnter2D (Collider2D collider)
 When a collision is triggered, check if the thing colliding is actually the player. If yes, kill it. More...
 

Detailed Description

Add this to a GameObject with a Collider2D set to Trigger to have it kill the player on touch.

Member Function Documentation

◆ 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
colliderThe object that collides with the KillPlayerOnTouch object.

The documentation for this class was generated from the following file: