using UnityEngine; using System.Collections; public class AgeGAmeOver : MonoBehaviour { // Use this for initialization public UIButton ButtonStart; public UIButton ButtonMenu; // Update is called once per frame void OnClick () { transform.parent.GetComponent().Hide(); ButtonStart.gameObject.SetActive(false); ButtonMenu.gameObject.SetActive(false); } }