Skip to main content

StalactiteFall

A class in Root.Township, the global namespace.

Drops stalactites one at a time: each call frees a random one that hasn't fallen yet.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private ToggleKinematicLogic[] stalactitesThe stalactites, each with a kinematic toggle.
private bool[] triggeredValuesWhich stalactites have dropped.

Methods​

MemberWhat it is
void SendOneTrue()Turns off kinematic on a random undropped stalactite, or logs if all have dropped.
2 private and internal methods
MemberWhat it is
private bool AllTriggered()True once every stalactite has dropped.
private void Awake()Sets up the dropped flags.