Add this class to a trigger boxCollider and it'll kill all playable characters that collide with it.
More...
Add this class to a trigger boxCollider and it'll kill all playable characters that collide with it.
◆ OnTriggerEnter()
virtual void MoreMountains.InfiniteRunnerEngine.KillsPlayerOnTouch.OnTriggerEnter |
( |
Collider |
other | ) |
|
|
protectedvirtual |
Handles the collision if we're in 3D mode
- Parameters
-
other | the Collider that collides with our object |
◆ OnTriggerEnter2D()
virtual void MoreMountains.InfiniteRunnerEngine.KillsPlayerOnTouch.OnTriggerEnter2D |
( |
Collider2D |
other | ) |
|
|
protectedvirtual |
Handles the collision if we're in 2D mode
- Parameters
-
other | the Collider2D that collides with our object |
◆ TriggerEnter()
virtual void MoreMountains.InfiniteRunnerEngine.KillsPlayerOnTouch.TriggerEnter |
( |
GameObject |
collidingObject | ) |
|
|
protectedvirtual |
Triggered when we collide with either a 2D or 3D collider
- Parameters
-
collidingObject | Colliding object. |
The documentation for this class was generated from the following file: