ActionDirector  1.0.0
The action director's cut for rapid actions integration
ActionDirector.ActionMouseRunAction Class Reference

Launch an action when a mouse event happens. More...

Inheritance diagram for ActionDirector.ActionMouseRunAction:

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
 

Detailed Description

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.

Member Data Documentation

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?


The documentation for this class was generated from the following file: