public void UpdateValue(Float01 newValue) { if (m_FillImage != null) { m_FillImage.fillAmount = newValue.GetValue(); } }
public override void UpdateValue(Float01 value) { var newValue = value.GetValue(); if (newValue < .5f) { m_IsActive = false; UpdateFireSystemScale(false); } else { m_IsActive = true; UpdateFireSystemScale(true); } }
private void UpdateImage() { if (m_Indicator == null || m_ChannelsToListen == null) { return; } float maxValue = float.MinValue; Float01 maxFloat01 = null; foreach (var channelAmplitude in m_ChannelsToListen) { if (channelAmplitude.AverageValue.GetValue() > maxValue) { maxFloat01 = channelAmplitude.AverageValue; maxValue = channelAmplitude.AverageValue.GetValue(); } } if (maxFloat01 != null) { m_Indicator.UpdateValue(maxFloat01); } }
public override void UpdateValue([NotNull] Float01 newValue) { m_DesiredValue = newValue.GetValue(); }
public abstract void UpdateValue(Float01 newValue);