Beispiel #1
0
 void CheckInputPause()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         if (pausaMenu.activeInHierarchy)
         {
             pausaMenu.SetActive(false);
             panelOpciones.gameObject.SetActive(false);
             botones.gameObject.SetActive(false);
             GameManager.instance.pauseMode = false;
             //Time.timeScale = 1;
             InputConfiguration.SelectFirstFoundButton();
         }
         else
         {
             transform.SetAsLastSibling();
             pausaMenu.SetActive(true);
             botones.SetActive(true);
             InputConfiguration.DeselectButton();
             botonesDelMenu [0].Select();
             GameManager.instance.pauseMode = true;
             //Time.timeScale = 0;
         }
     }
 }
Beispiel #2
0
 public void ClosePanel()
 {
     mesagePanel.SetActive(false);
     GameManager.instance.ventanaAbierta = false;
     GameManager.instance.pauseMode      = false;
     InputConfiguration.SelectFirstFoundButton();
     //Time.timeScale = 1;
 }
 // Use this for initialization
 void Start()
 {
     textoCambio      = GetComponent <Text>();
     textoCambio.text = "Has completado el trimestre " + (GameManager.instance.trimestre - 1);
     dinero.text      = "Dinero: " + (GameManager.instance.dinero - 100);
     amigos.text      = "Amigos: " + GameManager.instance.numFriends;
     nota.text        = "Nota: " + (GameManager.instance.media);
     InputConfiguration.SelectFirstFoundButton();
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     textoFin = GetComponent <Text>();
     if (GameManager.instance.notaFinal > 5)
     {
         textoFin.text = "Enhorabuena has aprobado el curso";
     }
     else
     {
         textoFin.text = "Has suspendido";
     }
     dinero.text = "Dinero: " + (GameManager.instance.dinero);
     amigos.text = "Amigos: " + GameManager.instance.numFriends;
     nota.text   = "Nota Final: " + (GameManager.instance.notaFinal);
     InputConfiguration.SelectFirstFoundButton();
 }