Method | Description | |
---|---|---|
ButtonAction ( Button button ) : System |
Initializes a new instance of the ButtonAction class.
|
|
Do ( System.Action action ) : void |
Sets the given action to be executed if the button is down or was pressed.
|
|
ExecuteAction ( ) : void |
Executes the action.
|
|
IsDown ( ) : IButtonAction |
The action will be triggered if the button is pressed.
|
|
WasPressed ( ) : IButtonAction |
The action will be triggered if the button was pressed.
|
|
WasReleased ( ) : IButtonAction |
The action will be triggered if the button was released.
|
public ButtonAction ( Button button ) : System | ||
button | Button | The button. |
return | System |
public Do ( System.Action action ) : void | ||
action | System.Action | The action. |
return | void |