HeatPointTemperatureController
A class in Root.Township, Alta.Heat.
Server: clamps the temperature of the HeatPoint on the same object between a min and max.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
MonoBehaviour - Attributes
RequireComponent - Documented in Heat
Constructors
| Member | What it is |
|---|---|
HeatPointTemperatureController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void ClampTemperature(ref float newtemperature) | Temperature modifier that clamps new temperatures to the range, and replaces NaN with the midpoint. |
private void Start() | Server: hooks ClampTemperature into the heat point's TemperatureModifier. |