Пример #1
0
 public void SetData(MValue <Action> data)
 {
     if (data == null)
     {
         _action = null;
     }
     else
     {
         _action = data.Value;
     }
 }
Пример #2
0
 public void SetData(MValue <Sprite> data)
 {
     if (data == null)
     {
         GetComponent <Image>().sprite = null;
     }
     else
     {
         GetComponent <Image>().sprite = data.Value;
     }
 }
Пример #3
0
 public void SetData(MValue <Color> data)
 {
     if (data == null)
     {
         GetComponent <Text>().color = Color.white;
     }
     else
     {
         GetComponent <Text>().color = data.Value;
     }
 }