HeatPointTriggerCollector
A class in Root.Township, the global namespace.
Trigger helper for a temperature check skill input. Counts hot HeatArea colliders inside it and toggles the input active after a set time.
- Listed in Global namespace: E to H
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
HeatPointTriggerCollector() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private TemperatureCheckInput inputMethod | The temperature check input that gets set active. |
private TemperatureCheckInputStructure structure | The input structure with the minimum temperature, activation time and active time. |
private float timer | Time left until the next toggle. |
private IUnityUpdateMethod update | Registered late update method while timing. |
private static UpdateModule updateModule | Shared late update module. |
private HashSet<Collider> validColliders | Hot heat area colliders currently inside the trigger. |
Methods
| Member | What it is |
|---|---|
void InitializeValues(TemperatureCheckInputStructure structure, TemperatureCheckInput inputMethod) | Sets the input structure (thresholds and times) and the input method to toggle. |
void ResetTime() | With no hot colliders inside, resets the timer and stops updating. |
3 private and internal methods
Used in
Members of other types that take, return or hold a HeatPointTriggerCollector: