ChangeButton.cs
using UnityEngine;
using System.Collections;
public class ChangeButton : MonoBehaviour {
public GameObject gameObject;
private UIButton thisUIButton;
void Awake () {
thisUIButton = GetComponent <UIButton>();
thisUIButton.controlIsEnabled = false;
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}