Destructible

Members

Member

Description

gameObject

health

isDead

transform

Events

Event

Description

onDeath

Invoked when the destructible dies.

onTakeDamage

Invoked when the destructible takes damage.

Methods

Method

Description

ToString()

Details

class Destructible
const GameObject gameObject
const float health
const bool isDead
const Transform transform
const ScriptEvent onDeath

Callback Signature:

void callback()

Invoked when the destructible dies.

const ScriptEvent onTakeDamage

Callback Signature:

void callback()

Note

This event can be consumed by calling CurrentEvent.Consume(). Consuming this event stops the destructible from taking damage.

Invoked when the destructible takes damage.

string ToString()