public void SetData(MBool data)
		{
			_gameObjectsToSet.ForEach(go =>
			{
				go.SetActive(data.Value);
			});
			_gameObjectsToReverseSet.ForEach(go =>
			{
				go.SetActive(!data.Value);
			});
		}
Пример #2
0
 public void SetData(MBool data)
 {
     _value = data;
     if (_isReverse)
     {
         gameObject.SetActive(!_value.Value);
     }
     else
     {
         gameObject.SetActive(_value.Value);
     }
 }
Пример #3
0
 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();
     }
 }
Пример #4
0
 public void SetData(MBool data)
 {
     GetComponent <Button>().interactable = data.Value;
 }
Пример #5
0
 public void SetDataWithOutEvent(MBool data)
 {
     _value = data;
 }