コード例 #1
0
 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();
 }