Skip to main content

DarknessChunkData

A class in Root.Township, the global namespace.

Chunk effect asset that turns darkness on while the player is in its chunks (for example caves), through DarknessTrigger.

Constructors​

MemberWhat it is
DarknessChunkData()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
override void Apply(bool isContained)Sets DarknessTrigger dark when the chunk contains the player and light when not.