using UnityEngine; using UnityEngine.UI; using System.Collections; public class Farberot : MonoBehaviour { public GameObject theButton; private ColorBlock theColor; void Awake() { } public void ButtonTransitionColors() { theButton.gameObject.GetComponent<Renderer>().material.color = Color.red; } }