Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     foreach (var s in m_btnColors)
     {
         s.onClick.AddListener(() => {
             Image img = s.GetComponent <Image>();
             m_painter.SetBrushColor(img.color);
         });
     }
 }
Пример #2
0
 public void UpdateIntensitySlider()
 {
     painter.SetBrushColor(colorSlider.value);
 }