Destructible
Members
Member |
Description |
---|---|
Events
Event |
Description |
---|---|
Invoked when the destructible dies. |
|
Invoked when the destructible takes damage. |
Methods
Method |
Description |
---|---|
Details
-
class Destructible
-
const GameObject gameObject
-
const float health
-
const bool isDead
-
const ScriptEvent onDeath
Callback Signature:
-
void callback()
Invoked when the destructible dies.
-
void callback()
-
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.
-
void callback()
-
string ToString()
-
const GameObject gameObject