Skip to main content

LogicIntSender

A class in Root.Township, Alta.Logic.

Logic sender that holds an int and passes changes to linked receivers.

Constructors​

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

Fields​

MemberWhat it is
int currentValueThe current int value.

Methods​

MemberWhat it is
void UpdateValue(int value)Sets the value and notifies linked receivers if it changed.
protected override void ReadDataValue()Copies the value from the shared logic data.
protected override void WriteDataValue()Copies the value into the shared logic data.

Used in​

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