// Use this for initialization void Start() { button.isEnabled = transform.parent.GetComponent <UIButton>().isEnabled; GameController.GetInstance().offensive = true; }