Add this component to an object and it will cause damage to objects that collide with it.
More...
|
virtual void | OnTriggerStay2D (Collider2D collider) |
| When a collision with the player is triggered, we give damage to the player and knock it back More...
|
|
virtual void | OnTriggerEnter2D (Collider2D collider) |
| when something enters our zone, we call our colliding endpoint More...
|
|
virtual void | OnTriggerStay (Collider collider) |
| when something stays in the zone, we call our colliding endpoint More...
|
|
virtual void | OnTriggerEnter (Collider collider) |
| When something enters our zone, we call our colliding endpoint More...
|
|
|
virtual void | Awake () |
| Initialization More...
|
|
virtual void | OnEnable () |
| OnEnable we set the start time to the current timestamp More...
|
|
virtual void | Colliding (GameObject collider) |
| When colliding, we kill our collider if it's a Health equipped object More...
|
|
Add this component to an object and it will cause damage to objects that collide with it.
◆ Awake()
virtual void MoreMountains.TopDownEngine.KillZone.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ Colliding()
virtual void MoreMountains.TopDownEngine.KillZone.Colliding |
( |
GameObject |
collider | ) |
|
|
protectedvirtual |
When colliding, we kill our collider if it's a Health equipped object
- Parameters
-
◆ OnEnable()
virtual void MoreMountains.TopDownEngine.KillZone.OnEnable |
( |
| ) |
|
|
protectedvirtual |
OnEnable we set the start time to the current timestamp
◆ OnTriggerEnter()
virtual void MoreMountains.TopDownEngine.KillZone.OnTriggerEnter |
( |
Collider |
collider | ) |
|
|
virtual |
When something enters our zone, we call our colliding endpoint
- Parameters
-
◆ OnTriggerEnter2D()
virtual void MoreMountains.TopDownEngine.KillZone.OnTriggerEnter2D |
( |
Collider2D |
collider | ) |
|
|
virtual |
when something enters our zone, we call our colliding endpoint
- Parameters
-
◆ OnTriggerStay()
virtual void MoreMountains.TopDownEngine.KillZone.OnTriggerStay |
( |
Collider |
collider | ) |
|
|
virtual |
when something stays in the zone, we call our colliding endpoint
- Parameters
-
◆ OnTriggerStay2D()
virtual void MoreMountains.TopDownEngine.KillZone.OnTriggerStay2D |
( |
Collider2D |
collider | ) |
|
|
virtual |
When a collision with the player is triggered, we give damage to the player and knock it back
- Parameters
-
collider | what's colliding with the object. |
◆ _colliderHealth
Health MoreMountains.TopDownEngine.KillZone._colliderHealth |
|
protected |
◆ TargetLayerMask
LayerMask MoreMountains.TopDownEngine.KillZone.TargetLayerMask = LayerManager.PlayerLayerMask |
The documentation for this class was generated from the following file:
- F:/Github/Store/TopDownEngine/Assets/TopDownEngine/Common/Scripts/Characters/Damage/KillZone.cs