Skip to main content

ManualCondition

A class in Root.Township, Features.Gameplay.GameConditions.

IGameCondition whose met state is a saved flag set in the Inspector or by save data, not computed.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private bool isConditionMetThe flag itself, saved with the entity.

Properties​

MemberWhat it is
Action OnConditionChanged { get; set; }Callback run after the flag is loaded from save data.

Methods​

MemberWhat it is
bool IsConditionMet()Returns the saved flag.