Example #1
0
 public void OnPointerDown(PointerEventData eventData)
 {
     img.color = Color.Lerp(c1.GetComponent <Image>().color, c2.GetComponent <Image>().color, .5f);
     SceneController.Instance.colorPalette.SetActive(false);
     Test.Instance.drawColor = img.color;
 }
Example #2
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     But.GetComponent <Image>().color = Color.grey;
 }
Example #3
0
 public void SetColor(Color c)
 {
     b_Color.GetComponent <Image>().color = c;
 }