public void RemoveButtonColor(Event e) { // GUI lookup example Button button = GuiLookup.GetComponent("button1") as Button; if (null != button) { button.Color = Color.white; } }
public void PaintButtonGreen(Event e) { // GUI lookup example Button button = GuiLookup.GetComponent("button1") as Button; if (null != button) { button.Color = Color.green; } }