LogicFloatReset
A class in Root.Township, Alta.Logic.
Logic component that passes a float through to its sender and, once nobody is interacting, eases it back to a default value after a delay. Saves its values.
- Listed in Items, inventory and logic
- Inherits or implements
MonoBehaviour,ISavable<LogicFloatResetSaveData>,ISavableSave<LogicFloatResetSaveData>,ISavableSaveBase - Derived types
LogicFloatResetSaveData - Documented in Other systems
Constructors
| Member | What it is |
|---|---|
LogicFloatReset() | Creates a LogicFloatReset with default values. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private float currentTimer | Time waited before returning starts. |
private float defaultValue | Value it returns to. |
private bool errorMessagePosted | Stops the missing-sender warning from repeating. |
private bool isInteracting | Whether a player is interacting. |
private float returnSpeedPerSec | How fast the value returns, per second. |
private LogicFloatSender sender | Float sender the value is output on. |
private float targetValue | Current value being sent. |
private float timeBeforeReturn | Seconds to wait before returning. |