Method AddReaction
AddReaction(SignalAsset, UnityEvent)
Defines a new reaction for a SignalAsset.
Declaration
public void AddReaction(SignalAsset asset, UnityEvent reaction)
Parameters
| Type | Name | Description | 
|---|---|---|
| SignalAsset | asset | The SignalAsset for which the reaction is being defined.  | 
    
| UnityEvent | reaction | The UnityEvent that describes the reaction.  | 
    
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Thrown when the asset is null.  | 
    
| ArgumentException | Thrown when the SignalAsset is already registered with this receiver.  |