[]
Adds an element to the current collection.
public int Add(InputAction inputAction)
| Type | Name | Description |
|---|---|---|
| InputAction | inputAction | The InputAction to add. |
| Type | Description |
|---|---|
| int | The index of the added element in the current collection. |
Creates a new InputAction instance based on the specified user action and handler, and adds it to the current collection.
public int Add(UserActionEnum userAction, ActionHandlerBase actionHandler)
| Type | Name | Description |
|---|---|---|
| UserActionEnum | userAction | The UserAction of the new instance. |
| ActionHandlerBase | actionHandler | The ActionHandler of the new instance. |
| Type | Description |
|---|---|
| int | The index of the new element in the current collection. |