Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     menu = GetComponent<PauseMenu1>();
     quitMenu = quitMenu.GetComponent<Canvas> ();
     resume = resume.GetComponent<Button>();
     quit = quit.GetComponent<Button>();
     help = help.GetComponent<Button>();
     t = t.GetComponent<Text>();
     t1 = t1.GetComponent<Text>();
     t2 = t2.GetComponent<Text>();
     quitMenu.enabled = false;
     t.enabled = false;
     t1.enabled = false;
     t2.enabled = false;
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     menu             = GetComponent <PauseMenu1>();
     quitMenu         = quitMenu.GetComponent <Canvas> ();
     resume           = resume.GetComponent <Button>();
     quit             = quit.GetComponent <Button>();
     help             = help.GetComponent <Button>();
     t                = t.GetComponent <Text>();
     t1               = t1.GetComponent <Text>();
     t2               = t2.GetComponent <Text>();
     quitMenu.enabled = false;
     t.enabled        = false;
     t1.enabled       = false;
     t2.enabled       = false;
 }
 private void Awake()
 {
     m_PauseMenu = GetComponentInChildren <PauseMenu1> ();
 }