public void SetData(MFloat data)
 {
     if (data == null)
     {
         _value = 0;
     }
     else
     {
         _value = data;
     }
 }
示例#2
0
        public void SetData(MFloat data)
        {
            _value = data.Value;

            var temp = _eventSettings.Find(s => s.Value == _value);

            if (temp == null)
            {
                Debug.LogErrorFormat(this, "Receive value {0} does not exist in the settings", _value);
            }
            else
            {
                temp.Event.Invoke();
            }
        }
示例#3
0
        public void SetData(MFloat data)
        {
            _value = data.Value;

            var temp = _settings.Find(s => s.Value == _value);

            if (temp == null)
            {
                Debug.LogErrorFormat(this, "Receive value {0} does not exist in the settings", _value);
            }
            else
            {
                GetComponent <Graphic>().color = temp.ToSetColor;
            }
        }
示例#4
0
 public void SetData(MFloat data)
 {
     GetComponent <Slider>().value = data.Value;
 }
示例#5
0
 public void SetData(MFloat data)
 {
     GetComponent <Text>().text = data.Value.ToString();
 }