public void GameOver()
 {
     sJugadorLook.UnlockCursor();
     Jugador.SetActive(false);
     InterfazPartida.SetActive(false);
     gameObject.SetActive(true);
 }
Exemplo n.º 2
0
    public void On_Pausa()
    {
        if (!pausado)
        {
            CanvasPartida.SetActive(false);
            sJugadorLook.UnlockCursor();
            sJugadorLook.enabled = false;
            sPlayerMove.enabled  = false;
            Panel.SetActive(true);
            pausado = true;
        }
        else
        {
            CanvasPartida.SetActive(true);
            PartidasGuardadas.SetActive(false);
            GuardarCambios.SetActive(false);

            sJugadorLook.enabled = true;
            sPlayerMove.enabled  = true;
            sJugadorLook.LockCursor();
            Panel.SetActive(false);
            pausado = false;
        }
    }