Beispiel #1
0
    public void Estado()
    {
        if (0 == transform.localRotation.y)
        {
            if (tipopuerta == 1)
            {
                animacion.Play("AbrirBunker");
            }
            else
            {
                animacion.Play("AbrirPuerta");
            }
        }
        else
        {
            if (tipopuerta == 1)
            {
                animacion.Play("CerrarBunker");
            }
            else
            {
                animacion.Play("CerrarPuerta");
            }
        }

        if (llaves == 2)
        {
            son.UltimaCancion();
        }
    }