PixelCrushers.DialogueSystem.DieOnTakeDamage Class Reference

This is a very simple example script that destroys a GameObject if it receives the message "TakeDamage(float)" or "Damage(float)". More...

Inheritance diagram for PixelCrushers.DialogueSystem.DieOnTakeDamage:
Collaboration diagram for PixelCrushers.DialogueSystem.DieOnTakeDamage:

Public Attributes

GameObject deadPrefab
 

Detailed Description

This is a very simple example script that destroys a GameObject if it receives the message "TakeDamage(float)" or "Damage(float)".

You can also assign an optional "corpse" prefab to replace the GameObject.

Member Data Documentation

◆ deadPrefab

GameObject PixelCrushers.DialogueSystem.DieOnTakeDamage.deadPrefab

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