Skip to main content

LogicFloatSender

A class in Root.Township, Alta.Logic.

A logic sender that sends a float value to its linked receivers.

Constructors​

MemberWhat it is
LogicFloatSender()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private float currentValueThe float value being sent.

Methods​

MemberWhat it is
void UpdateValue(float value)Sets a new value and sends it if it differs from the current one.
protected override void ReadDataValue()Copies the saved data value into currentValue.
protected override void WriteDataValue()Copies currentValue into the data sent to receivers.

Used in​

Members of other types that take, return or hold a LogicFloatSender: