Skip to main content

TempAbsorber

A class in Root.Township, the global namespace.

Prototype puzzle condition that is complete while at least one temporary light emitter (such as TempLaser) hits it.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private int hitCountNumber of emitters hitting it.

Methods​

MemberWhat it is
void BeginHit(ILightEmitterTemp emitter)Counts a new emitter hit and sets the condition complete.
void EndHit(ILightEmitterTemp emitter)Removes a hit; the condition is no longer complete when none are left.