public void SetData(MBool data) { _gameObjectsToSet.ForEach(go => { go.SetActive(data.Value); }); _gameObjectsToReverseSet.ForEach(go => { go.SetActive(!data.Value); }); }
public void SetData(MBool data) { _value = data; if (_isReverse) { gameObject.SetActive(!_value.Value); } else { gameObject.SetActive(_value.Value); } }
public void SetData(MBool data) { _value = data; if (_onValueChangeEvent != null) { _onValueChangeEvent.Invoke(_value); } if (_value && _onValueTrueEvent != null) { _onValueTrueEvent.Invoke(); } if (!_value && _onValueFalseEvent != null) { _onValueFalseEvent.Invoke(); } }
public void SetData(MBool data) { GetComponent <Button>().interactable = data.Value; }
public void SetDataWithOutEvent(MBool data) { _value = data; }