LevelEffectSize
A class in Root.Township, Alta.StatSystem.
Visual for a levelled stat effect: copies some mesh renderers with an overlay material and sets a shader value from the level. Client only. Nothing in code calls UpdateLevel, so it is probably wired up through a Unity event.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable
Constructors
| Member | What it is |
|---|---|
LevelEffectSize() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
Methods
| Member | What it is |
|---|---|
void UpdateLevel(int level) | Client: above level 0, creates the overlay copies if needed, shows them and sets the shader value from the curve. At 0 it hides them. |