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.
- Listed in Global namespace: C to D
- Inherits or implements
ChunkEffect - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
DarknessChunkData() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override void Apply(bool isContained) | Sets DarknessTrigger dark when the chunk contains the player and light when not. |