Example #1
0
 public void continuarjuego()
 {
     audiocontroller_aux.detener("Menu_Intro");
     StartCoroutine(delay_continuar());
     //vidas_gui aux_vidas_gui = FindObjectOfType<vidas_gui>();
     //aux_vidas_gui.vidas_actuales_met(vidas_encript.vidas_actuales());
 }
Example #2
0
    public void primeravez()
    {
        audiocontroller_aux.detener("Menu_Intro");
        gamecontroller_aux.tuto(primera);
        gamecontroller_aux.cambiarscenavalor(escena);

        if (fade_aux != null)
        {
            fade_aux.anegro();
        }
        gamecontroller_aux.cambiarscena();
    }
Example #3
0
    public void continuar()
    {
        gamecontroller_aux.botoncontinue();

        audiocontroller_aux.detener("Menu_Intro");
        gamecontroller_aux.tuto(false);
        gamecontroller_aux.cambiarscenavalor(escena);

        if (fade_aux != null)
        {
            fade_aux.anegro();
        }

        gamecontroller_aux.cambiarscena();
        gamecontroller_aux.continuarjuego();
    }
    void OnTriggerEnter(Collider other)
    {
        //if(other.gameObject.tag == "Player"||other.gameObject.tag == "Enemigo")
        if (other.gameObject.tag == "Player")
        {
            if (para_todo)
            {
                audiocontroller_aux.detener_todo();
            }
            else
            {
                if (sonido_detener != null && audiocontroller_aux != null)
                {
                    audiocontroller_aux.detener(sonido_detener);
                }
            }

            if (sonido_reproducir != null && audiocontroller_aux != null)
            {
                audiocontroller_aux.reproducir(sonido_reproducir);
            }

            if (destruir_obj != null)
            {
                Destroy(destruir_obj);
            }

            if (crear_obj != null)
            {
                Instantiate(crear_obj, transform.position, Quaternion.identity);
            }

            if (destruir)
            {
                Destroy(gameObject);
            }
        }
    }