PuzzleCondition
A class in Root.Township, the global namespace.
Base for one condition of an in-world puzzle. Subclasses set the completion state, which raises an event when it changes.
- Listed in Global namespace: P
- Inherits or implements
MonoBehaviour - Derived types
Puzzle,PuzzleConditionsAND,PuzzleLightTarget,TempAbsorber
Constructors
| Member | What it is |
|---|---|
PuzzleCondition() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
Properties
| Member | What it is |
|---|---|
bool CompletionState { get; protected set; } | Whether the condition is met. Only subclasses can set it. |
Events
| Member | What it is |
|---|---|
event PuzzleConditionHandler StateChanged | Raised when the completion state changes. |
Used in
Members of other types that take, return or hold a PuzzleCondition: