Performs various actions when the GameObject receives the "Die" message. More...
Public Member Functions | |
void | OnEnable () |
void | OnDisable () |
virtual void | Die () |
Run actions when the object receives the "Die" message. More... | |
void | OnApplyPersistentData () |
When applying persistent data, check the variable. More... | |
Public Attributes | |
bool | destroy = false |
Set this true to destroy the object on "Die". More... | |
string | sequence = string.Empty |
The sequence to play on "Die". More... | |
string | luaCode = string.Empty |
The lua code to run on "Die". More... | |
string | variableToRecordDeath = string.Empty |
The variable to record when the object dies. More... | |
string | variableToIncrement = string.Empty |
The variable to increment on "Die" More... | |
int | increment = 1 |
The increment amount. More... | |
int | min = 0 |
The minimum value. More... | |
int | max = 100 |
The maximum value. More... | |
Performs various actions when the GameObject receives the "Die" message.
|
virtual |
Run actions when the object receives the "Die" message.
void PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.OnApplyPersistentData | ( | ) |
When applying persistent data, check the variable.
If it's true
, the GameObject has been destroyed previously, so destroy it now.
void PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.OnDisable | ( | ) |
void PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.OnEnable | ( | ) |
bool PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.destroy = false |
Set this true
to destroy the object on "Die".
int PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.increment = 1 |
The increment amount.
To decrement, use a negative number.
string PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.luaCode = string.Empty |
The lua code to run on "Die".
int PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.max = 100 |
The maximum value.
int PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.min = 0 |
The minimum value.
string PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.sequence = string.Empty |
The sequence to play on "Die".
The speaker is the Dialogue Manager object, and the listener is this object.
string PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.variableToIncrement = string.Empty |
The variable to increment on "Die"
string PixelCrushers.DialogueSystem.UFPS.DialogueSystemOnDie.variableToRecordDeath = string.Empty |
The variable to record when the object dies.
When the object is reloaded, if this variable is true
then it will deactivate itself (or destroy itself if destroy is true).