IEnumerator PausaPanelExitoParcial()
    {
        yield return(new WaitForSeconds(1.5f));

        PanelActivado = ActivaPanelInteractivo.ExitoParcial;
        PanelInteractivo();
    }
Beispiel #2
0
    void MuestraInstrucciones()
    {
        switch (PanelActivado)
        {
        case ActivaPanelInteractivo.Siguiente:
            PanelDedosActivo = ActivaPanelDedos.Indice;
            MuestraPanelDedos(_mano);
            interfaz [1].gameObject.SetActive(false);
            break;

        case ActivaPanelInteractivo.Inicio:
            DesactivaIngredientes();
            PanelActivado = ActivaPanelInteractivo.Juegue;
            break;

        case ActivaPanelInteractivo.Exito:
            if (AudioExito != null)
            {
                AudioExito();
            }
            DesactivaIngredientes();
            interfaz [10].gameObject.SetActive(true);
            jugueNivel1 = true;
            AdminMenu.datosNivel1.fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            break;
        }
    }
 void Reinicio()
 {
     if (_limite < _numeroDeRepeticiones)
     {
         _pan          = true;
         _jamon        = true;
         _queso        = true;
         _jitomate     = true;
         _panExtra     = true;
         _count        = 0;
         _tiempoTemp   = 0;
         _limite      += 1;
         PanelActivado = ActivaPanelInteractivo.Juegue;
         Debug.Log("Debo destruir");
         _destruir = GameObject.FindGameObjectsWithTag("PanNivel3");
         for (int i = 0; i <= _destruir.Length - 1; i++)
         {
             Destroy(_destruir [i]);
         }
         _destruir = GameObject.FindGameObjectsWithTag("Estatico");
         for (int i = 0; i <= _destruir.Length - 1; i++)
         {
             Destroy(_destruir [i]);
         }
     }
 }
Beispiel #4
0
//	IEnumerator AnimacionSalto(){
//		yield return new WaitForSeconds (3.0f);
//		Vector3 temp;
//		for ( int i = 0; i <= _ingredientesAleatorios.Count - 1; i++) {
//			temp = _posicionDeIngredientesClon [i].transform.position;
//			temp.y += (0.12f)*i;
//			_posicionDeIngredientesClon [i].transform.position = temp;
//			_posicionDeIngredientesClon [i].GetComponent <Rigidbody2D> ().bodyType = RigidbodyType2D.Kinematic;
//		}
//
//		yield return new WaitForSeconds (3.0f);
//		for ( int i = 0; i <= _ingredientesAleatorios.Count - 1; i++) {
//			_posicionDeIngredientesClon [i].GetComponent <Rigidbody2D> ().bodyType = RigidbodyType2D.Dynamic;
//		}
//		StartCoroutine (AnimacionSalto ());
//	}

    void Reinicio()
    {
        AdminMenu.datosNivel3.tiempos.Add(_tiempoTemp);
        if (_limite == _numeroDeRepeticiones)
        {
            ActivaTecla   = Teclado.SinPresionar;
            PanelActivado = ActivaPanelInteractivo.Exito;
            ActivaPanel();
            return;
        }

        if (_limite < _numeroDeRepeticiones)
        {
            _iniciaCronometro = true;
            _ingredientesDeUsuario.Clear();
            _errores = 0;
            _contadorIngredientesDeUsuario = 0;
            _tiempoTemp = 0;
            _destruir   = GameObject.FindGameObjectsWithTag("Estatico");
            for (int i = 0; i <= _destruir.Length - 1; i++)
            {
                Destroy(_destruir [i]);
            }
        }
    }
Beispiel #5
0
 void Awake()
 {
     _mano = AdminMenu.datosNivel3.ManoSeleccionada;
     _numeroDeIngredientes = AdminMenu.datosNivel3.numeroDeIngredientes;
     _numeroDeRepeticiones = AdminMenu.datosNivel3.numeroDeRepeticiones;
     ayudaBoton.gameObject.SetActive(false);
     interfaz [0].gameObject.SetActive(true);
     _ingredientesDeUsuario      = new List <ActivaPanelDedos> ();
     ingredientesAleatorios      = new List <ActivaPanelDedos> ();
     _posicionDeIngredientesClon = new List <Transform> ();
     _guardaErrores = new List <ActivaPanelDedos> [_numeroDeRepeticiones];
     for (int i = 0; i <= _numeroDeRepeticiones - 1; i++)
     {
         _guardaErrores[i] = new List <ActivaPanelDedos>();
     }
     _iniciaCronometro = false;
     guardaResultados  = new List <List <ActivaPanelDedos> > ();
     ActivaTecla       = Teclado.SinPresionar;
     PanelActivado     = ActivaPanelInteractivo.SinPanel;
     _tiempoDePausaEntreIngredientes = 0.5f;
     _contadorCapa = 1;
     _errores      = 0;
     _contadorIngredientesDeUsuario = 0;
     _limite = 0;
 }
Beispiel #6
0
 void AgregaJitomate()
 {
     Colision();
     _ingredienteClon = null;
     _contadorIngredientesDeUsuario += 1;
     _ingredientesDeUsuario.Add(ActivaPanelDedos.Meñique);
     if (_contadorIngredientesDeUsuario == _numeroDeIngredientes)
     {
         ActivaTecla = Teclado.SinPresionar;
         ComparaIngredientes();
         PanelActivado = ActivaPanelInteractivo.ExitoParcial;
         ActivaPanel();
     }
     ActivaTecla = Teclado.PresionaCualquiera;
 }
Beispiel #7
0
 void ActualizaCantidadJitomate()
 {
     Colision();
     _ingredienteClon          = null;
     _cantidad                += 1;
     cantidadJitomateText.text = "Jitomate:" + _cantidad;
     if (_cantidad == _umbral)
     {
         PanelActivado = ActivaPanelInteractivo.Exito;
         MuestraInstrucciones();
         _cantidad         = 0;
         _panListo         = true;
         _jamonListo       = true;
         _quesoListo       = true;
         _jitomateListo    = true;
         _iniciaCronometro = false;
     }
 }
Beispiel #8
0
 void Awake()
 {
     Admin_level0.datosNivel2.Rutina = _secuencia;
     Admin_level0.datosNivel2.numeroDeRepeticiones = numeroDeRepeticiones;
     Admin_level0.datosNivel2.numeroDeIngredientes = _secuencia.Count;
     PanelActivado    = ActivaPanelInteractivo.Bienvenido;
     PanelDedosActivo = ActivaPanelDedos.SinSeleccion;
     interfaz [0].gameObject.SetActive(true);
     interfaz [13].gameObject.SetActive(true);
     _mano         = Admin_level0.datosNivel2.ManoSeleccionada;
     _contadorCapa = 0;
     _count        = 0;
     _limite       = 1;
     _pan          = true;
     _jamon        = true;
     _queso        = true;
     _jitomate     = true;
     _tiempoTemp   = 0;
 }
Beispiel #9
0
 void Reinicio()
 {
     Admin_level0.datosNivel2.tiempos.Add(_tiempoTemp);
     if (_limite < numeroDeRepeticiones)
     {
         _pan          = true;
         _jamon        = true;
         _queso        = true;
         _jitomate     = true;
         _count        = 0;
         _limite      += 1;
         _tiempoTemp   = 0;
         PanelActivado = ActivaPanelInteractivo.Juegue;
         _destruir     = GameObject.FindGameObjectsWithTag("Estatico");
         for (int i = 0; i <= _destruir.Length - 1; i++)
         {
             Destroy(_destruir [i]);
         }
     }
 }
Beispiel #10
0
 void Awake()
 {
     interfaz [0].gameObject.SetActive(true);
     interfaz [1].gameObject.SetActive(true);
     interfaz [11].gameObject.SetActive(false);
     PanelActivado    = ActivaPanelInteractivo.Bienvenido;
     PanelDedosActivo = ActivaPanelDedos.SinSeleccion;
     //_mano = Mano.Derecha;
     _mano                    = AdminMenu.datosNivel1.ManoSeleccionada;
     _umbral                  = 10;
     _panListo                = false;
     _jamonListo              = true;
     _quesoListo              = true;
     _jitomateListo           = true;
     _iniciaCronometro        = false;
     _cantidad                = 0;
     _tiempoDeApiladoPan      = 0;
     _tiempoDeApiladoJamon    = 0;
     _tiempoDeApiladoQueso    = 0;
     _tiempoDeApiladoJitomate = 0;
 }
 void Awake()
 {
     Admin_level0.datosNivel2.nombreDeRutina       = "Sin Rutina";
     Admin_level0.datosNivel2.Rutina               = _secuenciaSinRutina;
     Admin_level0.datosNivel2.numeroDeRepeticiones = _numeroDeRepeticiones;
     Admin_level0.datosNivel2.numeroDeIngredientes = _secuenciaSinRutina.Count;
     PanelActivado    = ActivaPanelInteractivo.Bienvenido;
     PanelDedosActivo = ActivaPanelDedos.SinSeleccion;
     interfaz [0].gameObject.SetActive(true);
     interfaz [13].gameObject.SetActive(true);
     _mano = Admin_level0.datosNivel2.ManoSeleccionada;
     _numeroDeRepeticiones = Admin_level0.datosNivel2.numeroDeRepeticiones;
     _contadorCapa         = 0;
     _count            = 0;
     _limite           = 1;
     _pan              = true;
     _jamon            = true;
     _queso            = true;
     _jitomate         = true;
     _panExtra         = true;
     _iniciaCronometro = false;
 }
    //Contiene los mensajes de instrucciones y de exito
    void PanelInteractivo()       // Cambiar a verbo
    {
        switch (PanelActivado)
        {
        case ActivaPanelInteractivo.Siguiente:
            interfaz [0].gameObject.SetActive(false);
            interfaz [1].gameObject.SetActive(true);
            PanelActivado = ActivaPanelInteractivo.Inicio;
            break;

        case ActivaPanelInteractivo.Inicio:
            interfaz [1].gameObject.SetActive(false);
            interfaz [10].gameObject.SetActive(false);
            PanelActivado    = ActivaPanelInteractivo.Juegue;
            PanelDedosActivo = _secuenciaSinRutina [0];
            PanelDedos(_mano);
            _iniciaCronometro = true;
            break;

        case ActivaPanelInteractivo.ExitoParcial:
            DesactivaIngredientes();
            mensajeFelicitacion.text = "Lo estás haciendo genial ¡Sigue asi!\n\n" + _limite + "  de  " + _numeroDeRepeticiones;
            interfaz [10].gameObject.SetActive(true);
            _iniciaCronometro = false;
            break;

        case ActivaPanelInteractivo.Exito:
            if (AudiodeExito != null)
            {
                AudiodeExito();
            }
            DesactivaIngredientes();
            jugueNivel2SinRutina = true;
            interfaz [11].gameObject.SetActive(true);
            _iniciaCronometro = false;
            Admin_level0.datosNivel2.fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            break;
        }
    }
    // Update is called once per frame
    void Update()
    {
        if (_iniciaCronometro)
        {
            _tiempoTemp += Time.deltaTime;
        }

        if ((Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.LeftArrow)) &&
            (PanelActivado == ActivaPanelInteractivo.Bienvenido || PanelActivado == ActivaPanelInteractivo.Siguiente || PanelActivado == ActivaPanelInteractivo.Inicio ||
             PanelActivado == ActivaPanelInteractivo.ExitoParcial))
        {
            if (PanelActivado == ActivaPanelInteractivo.Bienvenido)
            {
                PanelActivado = ActivaPanelInteractivo.Siguiente;
                PanelInteractivo();
            }
            else
            {
                ActivaMusicaDeJuego();
                PanelInteractivo();
                DecideSecuencia();
            }

            if (PanelActivado == ActivaPanelInteractivo.ExitoParcial)
            {
                PanelActivado = ActivaPanelInteractivo.Inicio;
                PanelInteractivo();
                Reinicio();
                DecideSecuencia();
            }
        }

        if ((Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) ||
             Input.GetKeyDown(KeyCode.LeftArrow)) && PanelActivado == ActivaPanelInteractivo.Exito)
        {
            Exito();
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) && _pan == false && PanelActivado == ActivaPanelInteractivo.Juegue)
        {
            SpawnPan();
        }
        else if (Input.GetKeyDown(KeyCode.RightArrow) && _jamon == false)
        {
            SpawnJamon();
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow) && _queso == false)
        {
            SpawnQueso();
        }
        else if (Input.GetKeyDown(KeyCode.LeftArrow) && _jitomate == false)
        {
            if (_panExtra == false)
            {
                SpawnPanExtra();
            }
            SpawnJitomate();
        }

        if (Input.GetKeyUp(KeyCode.UpArrow) && _ingredienteClon != null && _pan == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.RightArrow) && _ingredienteClon != null && _jamon == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.DownArrow) && _ingredienteClon != null && _queso == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.LeftArrow) && _ingredienteClon != null && _jitomate == false)
        {
            Destroy(_ingredienteClon);
            Destroy(_ingredienteExtra);
            _ingredienteClon  = null;
            _ingredienteExtra = null;
        }
    }
Beispiel #14
0
    void ActivaPanel()
    {
        switch (PanelActivado)
        {
        case ActivaPanelInteractivo.Bienvenido:
            interfaz [0].gameObject.SetActive(false);
            interfaz [1].gameObject.SetActive(true);
            PanelActivado = ActivaPanelInteractivo.Inicio;
            break;

        case ActivaPanelInteractivo.Juegue:
            if (AudioDeJuegoNivel3 != null)
            {
                AudioDeJuegoNivel3();
            }
            ayudaBoton.gameObject.SetActive(true);
            interfaz [1].gameObject.SetActive(false);
            GeneraSecuenciaAleatoria();
            StartCoroutine(GeneraSandwich());
            break;

        case ActivaPanelInteractivo.ExitoParcial:
            _iniciaCronometro = false;
            int temp;
            temp = _numeroDeIngredientes / 2;
            if (_errores == 0)
            {
                interfaz [2].gameObject.SetActive(true);
                noRepeticionesExito1.text = _limite + " de " + _numeroDeRepeticiones;
            }
            else if (_errores <= temp)
            {
                interfaz [3].gameObject.SetActive(true);
                noRepeticionesExito2.text = _limite + " de " + _numeroDeRepeticiones;
            }
            else if (_errores > temp)
            {
                interfaz [4].gameObject.SetActive(true);
                noRepeticionesExito3.text = _limite + " de " + _numeroDeRepeticiones;
            }
            break;

        case ActivaPanelInteractivo.Reinicio:
            interfaz [2].gameObject.SetActive(false);
            interfaz [3].gameObject.SetActive(false);
            interfaz [4].gameObject.SetActive(false);
            break;

        case ActivaPanelInteractivo.Exito:
            for (int i = 0; i <= AdminMenu.datosNivel3.tiempos.Count - 1; i++)
            {
                Debug.Log(AdminMenu.datosNivel3.tiempos [i]);
            }
            if (AudiodeExitoNivel3 != null)
            {
                AudiodeExitoNivel3();
            }
            interfaz [5].gameObject.SetActive(true);
            AdminMenu.datosNivel3.fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            break;
        }
    }
Beispiel #15
0
    // Update is called once per frame
    void Update()
    {
        if (_iniciaCronometro)
        {
            _tiempoTemp += Time.deltaTime;
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.LeftArrow) &&
            (PanelActivado == ActivaPanelInteractivo.SinPanel || PanelActivado == ActivaPanelInteractivo.Inicio || PanelActivado == ActivaPanelInteractivo.ExitoParcial || PanelActivado == ActivaPanelInteractivo.Exito))
        {
            if (PanelActivado == ActivaPanelInteractivo.SinPanel)
            {
                PanelActivado = ActivaPanelInteractivo.Bienvenido;
                ActivaPanel();
                return;
            }

            if (PanelActivado == ActivaPanelInteractivo.Inicio)
            {
                PanelActivado = ActivaPanelInteractivo.Juegue;
                ActivaPanel();
                return;
            }

            if (PanelActivado == ActivaPanelInteractivo.ExitoParcial)
            {
                PanelActivado = ActivaPanelInteractivo.Reinicio;
                ActivaPanel();
                Reinicio();
                return;
            }
        }

        if ((Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) ||
             Input.GetKeyDown(KeyCode.LeftArrow)) && PanelActivado == ActivaPanelInteractivo.Exito)
        {
            Exito();
            return;
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) && (ActivaTecla == Teclado.PresionaPan || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaPan;
            SpawnPan();
        }
        else if (Input.GetKeyDown(KeyCode.RightArrow) && (ActivaTecla == Teclado.PresionaJamon || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaJamon;
            SpawnJamon();
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow) && (ActivaTecla == Teclado.PresionaQueso || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaQueso;
            SpawnQueso();
        }
        else if (Input.GetKeyDown(KeyCode.LeftArrow) && (ActivaTecla == Teclado.PresionaJitomate || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaJitomate;
            SpawnJitomate();
        }

        if (Input.GetKeyUp(KeyCode.UpArrow) && _ingredienteClon != null && (ActivaTecla == Teclado.PresionaPan || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaCualquiera;
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.RightArrow) && _ingredienteClon != null && (ActivaTecla == Teclado.PresionaJamon || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaCualquiera;
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.DownArrow) && _ingredienteClon != null && (ActivaTecla == Teclado.PresionaQueso || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaCualquiera;
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.LeftArrow) && _ingredienteClon != null && (ActivaTecla == Teclado.PresionaJitomate || ActivaTecla == Teclado.PresionaCualquiera))
        {
            ActivaTecla = Teclado.PresionaCualquiera;
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
    }
Beispiel #16
0
    void DecideSecuencia()
    {
        if (_count > _secuencia.Count)
        {
            return;
        }

        if (_count == _secuencia.Count && _limite == numeroDeRepeticiones)
        {
            Admin_level0.datosNivel2.tiempos.Add(_tiempoTemp);
            PanelActivado = ActivaPanelInteractivo.Exito;
            PanelInteractivo();
            return;
        }

        if (_count == _secuencia.Count && _limite < numeroDeRepeticiones)
        {
            PanelActivado = ActivaPanelInteractivo.ExitoParcial;
            PanelInteractivo();
            return;
        }
        switch (_secuencia[_count])
        {
        case ActivaPanelDedos.Indice:
            PanelDedosActivo = ActivaPanelDedos.Indice;
            PanelDedos(_mano);
            _pan      = false;
            _jamon    = true;
            _queso    = true;
            _jitomate = true;
            break;

        case ActivaPanelDedos.Medio:
            PanelDedosActivo = ActivaPanelDedos.Medio;
            PanelDedos(_mano);
            _pan      = true;
            _jamon    = false;
            _queso    = true;
            _jitomate = true;
            break;

        case ActivaPanelDedos.Anular:
            PanelDedosActivo = ActivaPanelDedos.Anular;
            PanelDedos(_mano);
            _pan      = true;
            _jamon    = true;
            _queso    = false;
            _jitomate = true;
            break;

        case ActivaPanelDedos.Meñique:
            PanelDedosActivo = ActivaPanelDedos.Meñique;
            PanelDedos(_mano);
            _pan      = true;
            _jamon    = true;
            _queso    = true;
            _jitomate = false;
            break;
        }
        if (_count < _secuencia.Count)
        {
            _count += 1;
        }
    }
Beispiel #17
0
    void Update()
    {
        if ((Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.DownArrow) ||
             Input.GetKeyDown(KeyCode.LeftArrow)) && PanelActivado == ActivaPanelInteractivo.Bienvenido && PanelDedosActivo == ActivaPanelDedos.SinSeleccion)
        {
            PanelActivado = ActivaPanelInteractivo.Siguiente;
            MuestraInstrucciones();
            return;
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) && PanelActivado == ActivaPanelInteractivo.Siguiente)
        {
            if (MusicaAmbiente != null)
            {
                MusicaAmbiente();
            }
            PanelActivado = ActivaPanelInteractivo.Inicio;
            MuestraInstrucciones();
        }

        if ((Input.GetKeyDown(KeyCode.Return) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.RightArrow) ||
             Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.LeftArrow)) && PanelActivado == ActivaPanelInteractivo.Exito)
        {
            Exito();
        }


        if (_panListo == false && _iniciaCronometro == true)
        {
            _tiempoDeApiladoPan += Time.deltaTime;
            AdminMenu.datosNivel1.tiempoDedoIndice = _tiempoDeApiladoPan;
        }

        if (_jamonListo == false && _iniciaCronometro == true)
        {
            _tiempoDeApiladoJamon += Time.deltaTime;
            AdminMenu.datosNivel1.tiempoDedoMedio = _tiempoDeApiladoJamon;
        }

        if (_quesoListo == false && _iniciaCronometro == true)
        {
            _tiempoDeApiladoQueso += Time.deltaTime;
            AdminMenu.datosNivel1.tiempoDedoAnular = _tiempoDeApiladoQueso;
        }

        if (_jitomateListo == false && _iniciaCronometro == true)
        {
            _tiempoDeApiladoJitomate += Time.deltaTime;
            AdminMenu.datosNivel1.tiempoDedoMeñique = _tiempoDeApiladoJitomate;
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) && _panListo == false && PanelActivado == ActivaPanelInteractivo.Juegue)
        {
            _iniciaCronometro = true;
            PanelActivado     = ActivaPanelInteractivo.Inicio;
            MuestraInstrucciones();
            SpawnPan();
        }
        else if (Input.GetKeyDown(KeyCode.RightArrow) && _jamonListo == false)
        {
            _iniciaCronometro = true;
            PanelActivado     = ActivaPanelInteractivo.Inicio;
            MuestraInstrucciones();
            SpawnJamon();
        }
        else if (Input.GetKeyDown(KeyCode.DownArrow) && _quesoListo == false)
        {
            _iniciaCronometro = true;
            PanelActivado     = ActivaPanelInteractivo.Inicio;
            MuestraInstrucciones();
            SpawnQueso();
        }
        else if (Input.GetKeyDown(KeyCode.LeftArrow) && _jitomateListo == false)
        {
            _iniciaCronometro = true;
            PanelActivado     = ActivaPanelInteractivo.Inicio;
            MuestraInstrucciones();
            SpawnJitomate();
        }

        if (Input.GetKeyUp(KeyCode.UpArrow) && _ingredienteClon != null && _panListo == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.RightArrow) && _ingredienteClon != null && _jamonListo == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.DownArrow) && _ingredienteClon != null && _quesoListo == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
        else if (Input.GetKeyUp(KeyCode.LeftArrow) && _ingredienteClon != null && _jitomateListo == false)
        {
            Destroy(_ingredienteClon);
            _ingredienteClon = null;
        }
    }