AgeGAmeOver.cs 406 B

12345678910111213141516
  1. using UnityEngine;
  2. using System.Collections;
  3. public class AgeGAmeOver : MonoBehaviour {
  4. // Use this for initialization
  5. public UIButton ButtonStart;
  6. public UIButton ButtonMenu;
  7. // Update is called once per frame
  8. void OnClick () {
  9. transform.parent.GetComponent<ScreenBase>().Hide();
  10. ButtonStart.gameObject.SetActive(false);
  11. ButtonMenu.gameObject.SetActive(false);
  12. }
  13. }