The Lua trigger component runs Lua code when the game object receives a specified trigger event. 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 | OnTriggerEnter2D (Collider2D other) |
void | OnTriggerExit (Collider other) |
void | OnTriggerExit2D (Collider2D other) |
void | OnCollisionEnter (Collision collision) |
void | OnCollisionEnter2D (Collision2D collision) |
void | OnCollisionExit (Collision 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. More... | |
Public Attributes | |
DialogueTriggerEvent | trigger = DialogueTriggerEvent.OnUse |
The trigger that runs the Lua code. More... | |
Condition | condition |
The conditions under which the trigger will fire. More... | |
string | luaCode |
The Lua code to run. More... | |
Public Attributes inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
bool | once = false |
Set true if this event should only happen once. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from PixelCrushers.DialogueSystem.DialogueEventStarter | |
void | DestroyIfOnce () |
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.
void PixelCrushers.DialogueSystem.LuaTrigger.OnApplicationQuit | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnBarkEnd | ( | Transform | actor | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnCollisionEnter | ( | Collision | collision | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnCollisionEnter2D | ( | Collision2D | collision | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnCollisionExit | ( | Collision | collision | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnCollisionExit2D | ( | Collision2D | collision | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnConversationEnd | ( | Transform | actor | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnDestroy | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnDisable | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnEnable | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnLevelWillBeUnloaded | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnSequenceEnd | ( | Transform | actor | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnTriggerEnter | ( | Collider | other | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnTriggerEnter2D | ( | Collider2D | other | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnTriggerExit | ( | Collider | other | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnTriggerExit2D | ( | Collider2D | other | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnUse | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnUse | ( | string | message | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.OnUse | ( | Transform | actor | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.Start | ( | ) |
void PixelCrushers.DialogueSystem.LuaTrigger.TryStart | ( | Transform | actor | ) |
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.