Skip to main content

PuzzleConditionsAND

A class in Root.Township, the global namespace.

A puzzle condition that is complete while all its child conditions are complete, kept up to date through their change events.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private PuzzleCondition[] conditionsChild conditions that must all be complete.
private int falseCountNumber of child conditions not yet complete.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Subscribes to every child condition and counts how many are incomplete.
private void ConditionChanged(PuzzleCondition condition)Updates the incomplete count and the completion state when a child changes.