public void SetData(MFloat data) { if (data == null) { _value = 0; } else { _value = data; } }
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(); } }
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; } }
public void SetData(MFloat data) { GetComponent <Slider>().value = data.Value; }
public void SetData(MFloat data) { GetComponent <Text>().text = data.Value.ToString(); }