Next: , Previous: , Up: Interaction.Output   [Contents][Index]


9.2.4 MessageDestructor

Component: MessageDestructor

This component allows things to be destroyed by receiving the ’Destruct’ message. Very handy.

Drag and drop prefabs onto the ’Death Prefabs’ list to make handy things come to life when this one dies.

Field of MessageDestructor: bool debug

Sends a message to the console when we call ’Destruct’

Default value: false

Message on MessageDestructor: Destruct ()

Deletes this object from the scene, and spawns the supplied list of ’Death Prefabs’ if any

Field of MessageDestructor: bool debug

Sends a message to the console when we call ’Destruct’

Default value: false

Message on MessageDestructor: Destruct ()

Deletes this object from the scene, and spawns the supplied list of ’Death Prefabs’ if any