![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Detects collisions for the boulder hazard (BoulderHazard). When colliding with something on the boulder's collision layers, it will damage it and break the boulder.
Documentation updated 8/26/2024
Private Member Functions | |
void | OnTriggerEnter2D (Collider2D collision) |
If an object on one of boulder's collision layers is in the boulder hitbox, damage it if possible, then destroy the boulder. | |
void | Awake () |
Set reference to the BoulderHazard component. | |
Private Attributes | |
BoulderHazard | boulderHazard |
Reference to the BoulderHazard component on the boulder. | |
|
private |
Set reference to the BoulderHazard component.
|
private |
If an object on one of boulder's collision layers is in the boulder hitbox, damage it if possible, then destroy the boulder.
collision | Represents the object that collided with the boulder hitbox. |
|
private |
Reference to the BoulderHazard component on the boulder.