Skip to main content

LogicFloatReceiver

A class in Root.Township, Alta.Logic.

Logic component that takes one float sender input and fires a Unity event with the new value whenever it changes. Server side; saves which sender it is linked to.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private FloatUnityEvent onValueChangedUnity event set in the inspector, fired with the sender's float value.

Methods​

MemberWhat it is
protected override void ValueUpdated()Called when the linked sender's value changes; invokes onValueChanged with the new float.