protected override void OnChangedProperties() { if (_agent != null) { var color = _image.color; color.a = _agent.GetFloatValue(); _image.color = color; } }
protected override void OnChangedProperties() { var visibility = false; switch (_typeBinding) { case TypeBinding.LessOrEqual: visibility = _agentNumeric.GetFloatValue() <= _point; break; case TypeBinding.Equal: visibility = Mathf.Abs(_agentNumeric.GetFloatValue() - _point) > 0.0001f; break; case TypeBinding.GreaterOrEqual: visibility = _agentNumeric.GetFloatValue() >= _point; break; } SetVisible(visibility); }
protected override void OnChangedProperties() { _image.fillAmount = _valueAgent.GetFloatValue() / _max; }
protected override void OnChangedProperties() { _sliderComponent.value = _valueAgent.GetFloatValue(); }