Skip to main content

LogicIntReceiver

A class in Root.Township, Alta.Logic.

Logic receiver that listens to an int sender and raises a Unity event with each new value. Saves the link to its sender.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private IntUnityEvent onValueChangedUnity event called with the new int value.

Methods​

MemberWhat it is
protected override void ValueUpdated()Invokes onValueChanged with the sender's current value.

Used in​

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