A class used to broadcast a level to MMRadioReceiver(s), either directly or via events It can read from pretty much any value on any class
More...
A class used to broadcast a level to MMRadioReceiver(s), either directly or via events It can read from pretty much any value on any class
◆ Awake()
virtual void MoreMountains.Tools.MMRadioBroadcaster.Awake |
( |
| ) |
|
|
protectedvirtual |
On Awake we initialize our emitter
◆ OnValueChangeDelegate()
delegate void MoreMountains.Tools.MMRadioBroadcaster.OnValueChangeDelegate |
( |
| ) |
|
a delegate to handle value changes
◆ ProcessBroadcast()
virtual void MoreMountains.Tools.MMRadioBroadcaster.ProcessBroadcast |
( |
| ) |
|
|
protectedvirtual |
Broadcasts the value if needed
◆ Update()
virtual void MoreMountains.Tools.MMRadioBroadcaster.Update |
( |
| ) |
|
|
protectedvirtual |
On Update we process our broadcast
◆ _levelLastFrame
float MoreMountains.Tools.MMRadioBroadcaster._levelLastFrame = 0f |
|
protected |
◆ BroadcastOnChannel
bool MoreMountains.Tools.MMRadioBroadcaster.BroadcastOnChannel = true |
whether or not this broadcaster should use events to broadcast its level on the specified channel
◆ Channel
int MoreMountains.Tools.MMRadioBroadcaster.Channel = 0 |
the channel to broadcast on, has to match the Channel on the target receivers
◆ Emitter
the emitter to read the level on
◆ OnlyBroadcastOnValueChange
bool MoreMountains.Tools.MMRadioBroadcaster.OnlyBroadcastOnValueChange = true |
whether to broadcast all the time, or only when the value changes (lighter on performance, but won't "lock" the value)
◆ OnValueChange
what to do on value change
◆ Receivers
a list of receivers hardwired to this broadcaster, that will receive the level at runtime
The documentation for this class was generated from the following file: