|
ActionDirector
1.0.0
The action director's cut for rapid actions integration
|
Launch an action when a mouse event happens. More...
Public Types | |
| enum | MouseEventType { onMouseDown, onMouseDrag, onMouseEnter, onMouseExit, onMouseOver, onMouseUp, onMouseUpAsButton } |
Public Member Functions | |
| override void | Run () |
| override void | Step (float delta) |
| override void | Stop () |
Public Attributes | |
| Action | actionToRun |
| bool | startOnEnable = false |
| MouseEventType | mouseEventType |
Launch an action when a mouse event happens.
While this action is running, an action will be launch when a mouse event happen. 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.
| Action ActionDirector.ActionMouseRunAction.actionToRun |
Place the action you want to run.
| MouseEventType ActionDirector.ActionMouseRunAction.mouseEventType |
What event will trigger the launch of the action?
| bool ActionDirector.ActionMouseRunAction.startOnEnable = false |
Run the action immediately when GameObject is enabled?