Skip to main content

Puzzle

A class in Root.Township, the global namespace.

A puzzle condition that becomes complete once all its child conditions are complete, checked every frame. Never goes back to incomplete.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private PuzzleCondition[] conditionsConditions that must all be complete.

Methods​

1 private and internal method
MemberWhat it is
private void Update()Sets the puzzle complete when every condition is complete.