![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
The boulder projectile has a separate hitbox to determine when it collides with something. Adapted from BoulderHitbox.
Documentation updated 9/7/2024
Private Member Functions | |
void | OnTriggerEnter2D (Collider2D collision) |
If an object on the BoulderProjectile.collisionLayers enters the hitbox, damage it and break the boulder. | |
void | Awake () |
Set reference to the BoulderProjectile component. | |
Private Attributes | |
BoulderProjectile | boulderProjectile |
Reference to the BoulderProjectile component of the parent object. | |
|
private |
Set reference to the BoulderProjectile component.
|
private |
If an object on the BoulderProjectile.collisionLayers enters the hitbox, damage it and break the boulder.
collision | Represents the object that entered the hitbox. |
|
private |
Reference to the BoulderProjectile component of the parent object.