Method ChangeReactionAtIndex
ChangeReactionAtIndex(int, UnityEvent)
Replaces the reaction at a specific index with a new UnityEvent.
Declaration
public void ChangeReactionAtIndex(int idx, UnityEvent reaction)
Parameters
Type | Name | Description |
---|---|---|
int | idx | The index of the reaction to be replaced. |
UnityEvent | reaction | The replacement reaction. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the replacement reaction is null. |