Class Observer
The class of the observer side in the publish-subscribe model.
Namespace: black.kit.toybox
Assembly: cs.temp.dll.dll
Syntax
public abstract class Observer : UdonSharpBehaviour
Remarks
Usage:
- (in the inspector of Unity Editor) Add this component or prefab to the scene.
-
Implement the
OnNotify
method to receive a call from the subject.
Methods
OnNotify(Subject)
Implement a callback when a call is received from the subject.
Declaration
public abstract void OnNotify(Subject subject)
Parameters
Type | Name | Description |
---|---|---|
Subject | subject | The subject that called the observer. |