Feel  4.3
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMEmmiterReceiver Class Reference

This component lets you very easily have one property drive the value of another property. To do so, drag the object with the property you want to "read" from into the Emitter Property slot, then select the component the property is on, and finally the property itself. Then drag the object with the property you want to "write" to into the ReceiverProperty slot, and pick the property you want to drive with the emitter's value. More...

Inheritance diagram for MoreMountains.Tools.MMEmmiterReceiver:

Public Member Functions

delegate void OnValueChangeDelegate ()
 a delegate to handle value changes More...
 

Public Attributes

bool Emitting = true
 
MMPropertyEmitter EmitterProperty
 the property whose value you want to read and to have drive the ReceiverProperty's value More...
 
MMPropertyReceiver ReceiverProperty
 the property whose value you want to be driven by the EmitterProperty's value More...
 
OnValueChangeDelegate OnValueChange
 what to do on value change More...
 

Protected Member Functions

virtual void Awake ()
 On Awake we initialize both properties More...
 
virtual void Update ()
 On Update we emit our value to our receiver More...
 
virtual void EmitValue ()
 If needed, reads the current level of the emitter and sets it to the receiver More...
 

Protected Attributes

float _levelLastFrame
 

Detailed Description

This component lets you very easily have one property drive the value of another property. To do so, drag the object with the property you want to "read" from into the Emitter Property slot, then select the component the property is on, and finally the property itself. Then drag the object with the property you want to "write" to into the ReceiverProperty slot, and pick the property you want to drive with the emitter's value.

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMEmmiterReceiver.Awake ( )
protectedvirtual

On Awake we initialize both properties

◆ EmitValue()

virtual void MoreMountains.Tools.MMEmmiterReceiver.EmitValue ( )
protectedvirtual

If needed, reads the current level of the emitter and sets it to the receiver

◆ OnValueChangeDelegate()

delegate void MoreMountains.Tools.MMEmmiterReceiver.OnValueChangeDelegate ( )

a delegate to handle value changes

◆ Update()

virtual void MoreMountains.Tools.MMEmmiterReceiver.Update ( )
protectedvirtual

On Update we emit our value to our receiver

Member Data Documentation

◆ _levelLastFrame

float MoreMountains.Tools.MMEmmiterReceiver._levelLastFrame
protected

◆ EmitterProperty

MMPropertyEmitter MoreMountains.Tools.MMEmmiterReceiver.EmitterProperty

the property whose value you want to read and to have drive the ReceiverProperty's value

◆ Emitting

bool MoreMountains.Tools.MMEmmiterReceiver.Emitting = true

◆ OnValueChange

OnValueChangeDelegate MoreMountains.Tools.MMEmmiterReceiver.OnValueChange

what to do on value change

◆ ReceiverProperty

MMPropertyReceiver MoreMountains.Tools.MMEmmiterReceiver.ReceiverProperty

the property whose value you want to be driven by the EmitterProperty's value


The documentation for this class was generated from the following file: