Method AddReaction
AddReaction(SignalAsset, UnityEvent)
Defines a new reaction for a SignalAsset.
선언
public void AddReaction(SignalAsset asset, UnityEvent reaction)
파라미터
타입 | 이름 | 설명 |
---|---|---|
SignalAsset | asset | The SignalAsset for which the reaction is being defined. |
UnityEvent | reaction | The UnityEvent that describes the reaction. |
예외
타입 | 조건 |
---|---|
ArgumentNullException | Thrown when the asset is null. |
ArgumentException | Thrown when the SignalAsset is already registered with this receiver. |