This is a very simple example script that destroys a GameObject if it receives the message "TakeDamage(float)" or "Damage(float)". More...
Public Attributes | |
GameObject | deadPrefab |
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.
GameObject PixelCrushers.DialogueSystem.DieOnTakeDamage.deadPrefab |