Class Subject
The class of the subject side in the publish-subscribe model.
Inheritance
System.Object
Subject
Namespace: black.kit.toybox
Assembly: cs.temp.dll.dll
Syntax
public class Subject : UdonSharpBehaviour
Remarks
Usage (in the inspector of Unity Editor):
- Add this component or prefab to the scene.
- Specify the observers to notify.
Properties
ClassName
Gets the class name of the subject.
Declaration
public virtual string ClassName { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Override this property to change the class name.
Methods
Notify()
Notify all observers.
Declaration
public virtual void Notify()