Пример #1
0
 public void ColorToggleButtonValueChanged(Toggle toggle)
 {
     if (toggle.isOn)
     {
         _selectedColorButton = toggle.GetComponent <ColorToggleButton>();
         SelectColor(_selectedColorButton.colorImage.color);
     }
 }
Пример #2
0
 private void SelectColorButton(ColorToggleButton colorButton, Color color)
 {
     firstColorButton.colorImage.color             = color;
     firstColorButton.GetComponent <Toggle>().isOn = true;
 }
Пример #3
0
 private void SelectColorButton(ColorToggleButton colorButton)
 {
     firstColorButton.GetComponent <Toggle>().isOn = true;
 }