Tanoda
|
Public Member Functions | |
virtual void | Activate () |
virtual void | Deactivate () |
Public Attributes | |
UnityEvent | OnActivate |
UnityEvent | OnDeactivate |
Protected Attributes | |
Color | OnColor = Color.green |
Color | OffColor = Color.red |
Color | LimitColor = Color.blue |
Color | DirectionColor = Color.white |
Color | NormalColor = Color.gray |
Properties | |
bool | IsActive [get] |
Base class for detectors.
A Detector is an object that observes some aspect of a scene and reports true when the specified conditions are met. Typically these conditions involve hand information, but this is not required.
Detector implementations must call Activate() when their conditions are met and Deactivate() when those conditions are no longer met. Implementations should also call Deactivate() when they, or the object they are a component of become disabled. Implementations can call Activate() and Deactivate() more often than is strictly necessary. This Detector base class keeps track of the IsActive status and only dispatches events when the status changes.
Definition at line 32 of file Detector.cs.
|
virtual |
Invoked when this detector activates. Subclasses must call this function when the detector's conditions become true.
Definition at line 54 of file Detector.cs.
|
virtual |
Invoked when this detector deactivates. Subclasses must call this function when the detector's conditions change from true to false.
Definition at line 66 of file Detector.cs.
|
protected |
Definition at line 77 of file Detector.cs.
|
protected |
Definition at line 76 of file Detector.cs.
|
protected |
Definition at line 78 of file Detector.cs.
|
protected |
Definition at line 75 of file Detector.cs.
UnityEvent Leap.Unity.Detector.OnActivate |
Dispatched when the detector activates (becomes true).
Definition at line 42 of file Detector.cs.
|
protected |
Definition at line 74 of file Detector.cs.
UnityEvent Leap.Unity.Detector.OnDeactivate |
Dispatched when the detector deactivates (becomes false).
Definition at line 47 of file Detector.cs.
|
get |