Deprecated by DialogueSystemTrigger. More...
Public Member Functions | |
void | OnBarkEnd (Transform actor) |
void | OnConversationEnd (Transform actor) |
void | OnSequenceEnd (Transform actor) |
void | OnUse (Transform actor) |
void | OnUse (string message) |
void | OnUse () |
void | OnTriggerEnter (Collider other) |
void | OnTriggerExit (Collider other) |
void | OnCollisionEnter (Collision collision) |
void | OnCollisionExit (Collision collision) |
void | OnTriggerEnter2D (Collider2D other) |
void | OnTriggerExit2D (Collider2D other) |
void | OnCollisionEnter2D (Collision2D collision) |
void | OnCollisionExit2D (Collision2D collision) |
void | Start () |
void | OnEnable () |
void | OnDisable () |
void | OnLevelWillBeUnloaded () |
void | OnApplicationQuit () |
void | OnDestroy () |
void | TryStart (Transform actor) |
Runs the Lua code if the condition is true. | |
Public Attributes | |
DialogueTriggerEvent | trigger = DialogueTriggerEvent.OnUse |
The trigger that runs the Lua code. | |
Condition | condition |
The conditions under which the trigger will fire. | |
string | luaCode |
The Lua code to run. | |
Public Attributes inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
bool | once = false |
Set true if this event should only happen once. | |
Additional Inherited Members | |
Protected Member Functions inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
void | DestroyIfOnce () |
Properties inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
virtual bool | useOnce [get] |
Deprecated by DialogueSystemTrigger.
The Lua trigger component runs Lua code when the game object receives a specified trigger event. For example, you can add a Lua trigger and a static trigger collider to an area. When the player enters the trigger area, this component could set a Lua variable.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Runs the Lua code if the condition is true.
Condition PixelCrushers.DialogueSystem.LuaTrigger.condition |
The conditions under which the trigger will fire.
string PixelCrushers.DialogueSystem.LuaTrigger.luaCode |
The Lua code to run.
DialogueTriggerEvent PixelCrushers.DialogueSystem.LuaTrigger.trigger = DialogueTriggerEvent.OnUse |
The trigger that runs the Lua code.