Skip to main content

PuzzleConditionsANDTemp

A class in Root.Township, the global namespace.

Same as PuzzleConditionsAND but for PuzzleConditionTemp conditions.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private PuzzleConditionTemp[] 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(PuzzleConditionTemp condition)Updates the incomplete count and the completion state when a child changes.