Exemple #1
0
    void salirbrauler()
    {
        //  GetComponent<Npc_movimiento>().validador = true;
        DisparadorEntradaBrauler = false;
        validadorDeteccion       = false;
        PrimeraEntrada           = true;
        SegundaEntrada           = false;
        ValidadorCanvastext      = false;
        CerraCanvas();

        StopCoroutine(Puntero_.Parpaderopuntero(LectorDetexto.LeyendoTexto));
        Puntero_.ValidadorPuntero = false;
        FindObjectOfType <movimiento>().DisparadorEvento = false;
    }
Exemple #2
0
    // Update is called once per frame
    void Update()
    {
        if (DisparadorDialogo == true)
        {
            //lectura de mensaje
            if (LectorDetexto.LeyendoTexto == false)
            {
                //puntero de espera
                // puntero();
                StartCoroutine(Puntero_.Parpaderopuntero(LectorDetexto.LeyendoTexto));


                //EntraATexto();
            }
        }
    }
Exemple #3
0
    // Update is called once per frame
    void Update()
    {
        if (Desactivador == true)
        {
            return;
        }

        if (DisparadorDialogo == true)
        {
            //ativa canvas
            if (LectorDetexto.LeyendoTexto == true && ValidadorCanvastext == false)
            {
                Canvastext.enabled  = true;
                ValidadorCanvastext = true;
            }

            //activacadro de seleccion
            if (Contador != 0)
            {
                ActivadorCuadroDeSeleccion();
            }
            //define cual es la accion a seleccionar
            if (BoxSelecction == null)
            {
                BoxSelecction = FindObjectOfType <menus_interface>().BoxSelecction;

                if (BoxSelecction.activeSelf == true)
                {
                    SeleccionaAccion();
                }
            }
            else if (BoxSelecction.activeSelf == true)
            {
                SeleccionaAccion();
            }

            //lectura de mensaje
            if (LectorDetexto.LeyendoTexto == false)
            {
                //puntero de espera
                StartCoroutine(Puntero_.Parpaderopuntero(LectorDetexto.LeyendoTexto));

                EntraATexto();
            }
        }
    }
Exemple #4
0
    void Update()
    {
        if (DisparadorDialogo == true)
        {
            //ativa canvas
            if (LectorDetexto.LeyendoTexto == true && ValidadorCanvastext == false)
            {
                if (BoxSelecction != null)
                {
                    BoxSelecction.SetActive(false);
                }
                else
                {
                    BoxSelecction = FindObjectOfType <menus_interface>().BoxSelecction;
                    BoxSelecction.SetActive(false);
                }

                Canvastext.enabled  = true;
                ValidadorCanvastext = true;
            }



            //lectura de mensaje
            if (LectorDetexto.LeyendoTexto == false)
            {
                //puntero de espera
                // puntero();
                StartCoroutine(Puntero_.Parpaderopuntero(LectorDetexto.LeyendoTexto));


                EntraATexto();
            }
        }
        else if (EstoyEnBrauler == true && TriggerBrawler == true)
        {
            if (ScritBatalla.TriggerEntraceCinema == false)
            {
                ContinuaCinematica();
                TriggerBrawler = false;
                EstoyEnBrauler = false;
                Debug.Log("esta a ContinuaCinematica");
            }
        }
    }
 // Update is called once per frame
 void Update()
 {
     if (Desactivador == true)
     {
         return;
     }
     if (Disparador == true)
     {
         //leer Texto
         if (LectorDetexto.LeyendoTexto == false)
         {
             if (PrimeraEntrada == false)
             {
                 ActicaSelector();
                 StartCoroutine(puntero.Parpaderopuntero(LectorDetexto.LeyendoTexto));
                 return;
             }
             DarCrewildInicial();
         }
     }
 }
Exemple #6
0
    // Update is called once per frame
    void Update()
    {
        if (LimpiarTodasPlayerPref == true)
        {
            LimpiarTodasPlayerPref = false;
            PlayerPrefs.DeleteAll();
        }
        if (Desactivador == true)
        {
            return;
        }
        if (DisparadorBaul == true)
        {
            //cambia imagen Baul
            GetComponent <SpriteRenderer>().sprite = Imgenes[1];

            if (ObjetoDestruible == true)
            {
                GetComponent <SpriteRenderer>().enabled = false;
            }


            //activa canvas
            if (LectorDetexto.LeyendoTexto == true && ValidadorCanvastext == false)
            {
                Canvastext.enabled = true;
                menuSiNo.SetActive(false);
                ValidadorCanvastext = true;
            }

            //leer Texto
            if (LectorDetexto.LeyendoTexto == false)
            {
                DarITen();
            }

            StartCoroutine(puntero.Parpaderopuntero(LectorDetexto.LeyendoTexto));
        }
    }