Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
BoulderProjectileHitbox Class Reference

Detailed Description

The boulder projectile has a separate hitbox to determine when it collides with something. Adapted from BoulderHitbox.

Documentation updated 9/7/2024

Author
Stephen Nuttall

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.
 

Member Function Documentation

◆ Awake()

void BoulderProjectileHitbox.Awake ( )
private

Set reference to the BoulderProjectile component.

◆ OnTriggerEnter2D()

void BoulderProjectileHitbox.OnTriggerEnter2D ( Collider2D collision)
private

If an object on the BoulderProjectile.collisionLayers enters the hitbox, damage it and break the boulder.

Parameters
collisionRepresents the object that entered the hitbox.

Member Data Documentation

◆ boulderProjectile

BoulderProjectile BoulderProjectileHitbox.boulderProjectile
private

Reference to the BoulderProjectile component of the parent object.


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