IfEvent
A class in Root.Township, the global namespace.
Raises one of two events depending on a bool, for wiring up in the inspector.
- Listed in Global namespace: I to L
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
IfEvent() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
void Invoke(bool isTrue) | Fires ifTrue or ifFalse depending on the value. |