![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
Script for destructible walls that get broken when attacked.
Documentation updated 2/11/2025
Public Member Functions | |
void | WallDestroyed () |
Called whenever a wall is broken. Breaks all sibling walls. | |
Protected Member Functions | |
void | SelfDestruct () |
An alternative method to destroy this wall (ObjectHealth.TakeDamage calls the OnDeath(), which was creating infinite loops). Called whenever a wall in the group gets destroyed. | |
Protected Attributes | |
GameObject | breakParticles |
Reference to the particle effect that is created when the wall is destroyed. | |
bool | destroyGroup = true |
Whether or not this wall should destroy all other walls part of the same group (siblings) when destroyed. | |
|
protected |
An alternative method to destroy this wall (ObjectHealth.TakeDamage calls the OnDeath(), which was creating infinite loops). Called whenever a wall in the group gets destroyed.
void DestructibleWall.WallDestroyed | ( | ) |
Called whenever a wall is broken. Breaks all sibling walls.
|
protected |
Reference to the particle effect that is created when the wall is destroyed.
|
protected |
Whether or not this wall should destroy all other walls part of the same group (siblings) when destroyed.