AreaTrigger.bindOnDestroy
Bind the lua function to be called when the area trigger is destroyed
Kind: Function
Environments: Game
Game
areaTrigger:bindOnDestroy( callback, object )
Parameters:
| Name | Type | Description |
|---|---|---|
areaTrigger |
AreaTrigger | The area trigger instance. |
callback |
string | The name of the Lua function to bind. |
object (optional) |
table | The object that will receive the callback. (optional) |