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

Detailed Description

Script for destructible walls that get broken when attacked.

Documentation updated 2/11/2025

Author
Alexander Art

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.
 

Member Function Documentation

◆ SelfDestruct()

void DestructibleWall.SelfDestruct ( )
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.

◆ WallDestroyed()

void DestructibleWall.WallDestroyed ( )

Called whenever a wall is broken. Breaks all sibling walls.

Member Data Documentation

◆ breakParticles

GameObject DestructibleWall.breakParticles
protected

Reference to the particle effect that is created when the wall is destroyed.

◆ destroyGroup

bool DestructibleWall.destroyGroup = true
protected

Whether or not this wall should destroy all other walls part of the same group (siblings) when destroyed.


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