The condition observer component evaluates a condition on a set frequency. More...
Classes | |
class | SendMessageAction |
Public Member Functions | |
void | Check () |
Call this method to manually check the condition and fire the action if it's true. More... | |
void | Check (GameObject gameObject) |
Sets the observed GameObject and checks the condition. More... | |
void | Check (string gameObjectName) |
Sets the observed GameObject to the named GameObject and checks the condition. More... | |
void | Fire () |
Call this method to manually run the action. More... | |
Public Attributes | |
float | frequency = 1 |
The frequency at which to check the condition. More... | |
bool | once |
If true , destroy this component after the condition is true. More... | |
GameObject | observeGameObject = null |
Observe this game object when evaluating the condition. More... | |
Condition | condition = new Condition() |
The conditions under which the trigger will fire. More... | |
string | questName = string.Empty |
The name of the quest to update when the condition is true. More... | |
QuestState | questState |
The new state of the quest. More... | |
string | luaCode = string.Empty |
The lua code to run. More... | |
string | sequence = string.Empty |
The sequence to play. More... | |
string | alertMessage = string.Empty |
An optional gameplay alert message. More... | |
LocalizedTextTable | localizedTextTable = null |
An optional localized text table to use for the alert message. More... | |
SendMessageAction[] | sendMessages = new SendMessageAction[0] |
bool | useQuestNamePicker = true |
The condition observer component evaluates a condition on a set frequency.
When the condition is true, it sends a message to a list of GameObjects and shows a gameplay alert message.
void PixelCrushers.DialogueSystem.ConditionObserver.Check | ( | ) |
Call this method to manually check the condition and fire the action if it's true.
void PixelCrushers.DialogueSystem.ConditionObserver.Check | ( | GameObject | gameObject | ) |
Sets the observed GameObject and checks the condition.
gameObject | Game object. |
void PixelCrushers.DialogueSystem.ConditionObserver.Check | ( | string | gameObjectName | ) |
Sets the observed GameObject to the named GameObject and checks the condition.
gameObjectName | Game object name. |
void PixelCrushers.DialogueSystem.ConditionObserver.Fire | ( | ) |
Call this method to manually run the action.
string PixelCrushers.DialogueSystem.ConditionObserver.alertMessage = string.Empty |
An optional gameplay alert message.
Leave blank for no message.
The conditions under which the trigger will fire.
float PixelCrushers.DialogueSystem.ConditionObserver.frequency = 1 |
The frequency at which to check the condition.
LocalizedTextTable PixelCrushers.DialogueSystem.ConditionObserver.localizedTextTable = null |
An optional localized text table to use for the alert message.
string PixelCrushers.DialogueSystem.ConditionObserver.luaCode = string.Empty |
The lua code to run.
GameObject PixelCrushers.DialogueSystem.ConditionObserver.observeGameObject = null |
Observe this game object when evaluating the condition.
bool PixelCrushers.DialogueSystem.ConditionObserver.once |
If true
, destroy this component after the condition is true.
string PixelCrushers.DialogueSystem.ConditionObserver.questName = string.Empty |
The name of the quest to update when the condition is true.
Blank for none.
QuestState PixelCrushers.DialogueSystem.ConditionObserver.questState |
The new state of the quest.
SendMessageAction [] PixelCrushers.DialogueSystem.ConditionObserver.sendMessages = new SendMessageAction[0] |
string PixelCrushers.DialogueSystem.ConditionObserver.sequence = string.Empty |
The sequence to play.
bool PixelCrushers.DialogueSystem.ConditionObserver.useQuestNamePicker = true |