Skip to main content

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.

Constructors​

MemberWhat it is
PuzzleCondition()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private bool stateBacking field for CompletionState.

Properties​

MemberWhat it is
bool CompletionState { get; protected set; }Whether the condition is met. Only subclasses can set it.

Events​

MemberWhat it is
event PuzzleConditionHandler StateChangedRaised when the completion state changes.

Used in​

Members of other types that take, return or hold a PuzzleCondition: