|
ActionDirector
1.0.0
The action director's cut for rapid actions integration
|
Launch an action when there is a collision with another collider. More...
Public Types | |
| enum | ColliderType { onCollisionEnter, onCollisionExit, onCollisionStay, onTriggerEnter, onTriggerExit, onTriggerStay } |
Public Member Functions | |
| override void | Run () |
| override void | Step (float delta) |
| override void | Stop () |
Public Attributes | |
| Action | actionToRun |
| bool | startOnEnable = false |
| bool | is2d |
| ColliderType | colliderType |
| Collider2D | triggerCollider2D |
| Collider | triggerCollider |
Launch an action when there is a collision with another collider.
While this action is running, an action will be launch when a collision happens with another collider. If you specify a triggerCollider the action will be launch only if this is the collider in the collision. Otherwise the action will be launch when colliding any collider. Use onTrigger(Enter/Exit/Stay) type if the collider has the 'isTrigger' checked. Otherwise use onCollision(Enter/Exit/Stay). IMPORTANT NOTE: This action can't be in a ActionContainer. IMPORTANT NOTE: You need a Collider (BoxCollider, SphereCollider, MeshCollider,..etc) component attached to the GameObject with this action. This action use the events from the Unity Collider events. For more details (3d), Please see http://docs.unity3d.com/ScriptReference/Collider.html For more details (2d), Please see http://docs.unity3d.com/ScriptReference/Collider2D.html
| Action ActionDirector.ActionCollideRunAction.actionToRun |
Place the action you want to run.
| ColliderType ActionDirector.ActionCollideRunAction.colliderType |
Use collider types collision when the collider is not a trigger otherwise use trigger types
| bool ActionDirector.ActionCollideRunAction.is2d |
Are we using 2d or 3d physic
| bool ActionDirector.ActionCollideRunAction.startOnEnable = false |
Run the action immediately when GameObject is enabled?
| Collider ActionDirector.ActionCollideRunAction.triggerCollider |
If empty will run action on any collision
| Collider2D ActionDirector.ActionCollideRunAction.triggerCollider2D |
If empty will run action on any collision