예제 #1
0
 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);
        }
예제 #3
0
 protected override void OnChangedProperties()
 {
     _image.fillAmount = _valueAgent.GetFloatValue() / _max;
 }
예제 #4
0
 protected override void OnChangedProperties()
 {
     _sliderComponent.value = _valueAgent.GetFloatValue();
 }