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

Launch an action when a input button event happens. More...

Inheritance diagram for ActionDirector.ActionButtonRunAction:

Public Types

enum  ButtonEventType { onButtonDown, onButtonUp, onButtonPressed }
 

Public Member Functions

override void Run ()
 
override void Step (float delta)
 
override void Stop ()
 

Public Attributes

Action actionToRun
 
bool startOnEnable = false
 
string inputName
 
ButtonEventType buttonEventType
 

Detailed Description

Launch an action when a input button event happens.

While this action is running, an action will be launch when an input button event happen. When the type is onButtonDown, the action will be launch only once on the moment the button is pressed. When the type is onButtonUp, the action will be launch only once on the moment the button is released. When the type is onButtonPressed, the action will be launch every frame while the button is pressed.

Member Data Documentation

Action ActionDirector.ActionButtonRunAction.actionToRun

Place the action you want to run.

ButtonEventType ActionDirector.ActionButtonRunAction.buttonEventType

What event will trigger the launch of the action? (onButtonPressed will be called every frame)

string ActionDirector.ActionButtonRunAction.inputName

The name of the input from unity menu Edit -> Project Settings -> Input

bool ActionDirector.ActionButtonRunAction.startOnEnable = false

Run the action immediately when GameObject is enabled?


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