Ejemplo n.º 1
0
    public void ZerarImagem()
    {
        S01.SetActive(false);
        S02.SetActive(false);
        S03.SetActive(false);
        S04.SetActive(false);
        S05.SetActive(false);
        S06.SetActive(false);
        S07.SetActive(false);
        S08.SetActive(false);

        D01.SetActive(false);
        D02.SetActive(false);
        D03.SetActive(false);
        D04.SetActive(false);
        D05.SetActive(false);
        D06.SetActive(false);
        D07.SetActive(false);
        D08.SetActive(false);

        M01.SetActive(false);
        M02.SetActive(false);
        M03.SetActive(false);
        M04.SetActive(false);
        M05.SetActive(false);
        M06.SetActive(false);
        M07.SetActive(false);
        M08.SetActive(false);
    }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            // Overflow is fine, just wrap
            unchecked
            {
                int hash = 17;

                hash = hash * 29 + M00.GetHashCode();
                hash = hash * 29 + M01.GetHashCode();
                hash = hash * 29 + M02.GetHashCode();
                hash = hash * 29 + M03.GetHashCode();

                hash = hash * 29 + M10.GetHashCode();
                hash = hash * 29 + M11.GetHashCode();
                hash = hash * 29 + M12.GetHashCode();
                hash = hash * 29 + M13.GetHashCode();

                hash = hash * 29 + M20.GetHashCode();
                hash = hash * 29 + M21.GetHashCode();
                hash = hash * 29 + M22.GetHashCode();
                hash = hash * 29 + M23.GetHashCode();

                return(hash);
            }
        }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(M00.GetHashCode() ^ M01.GetHashCode() ^ M02.GetHashCode() ^ M03.GetHashCode() ^
            M10.GetHashCode() ^ M11.GetHashCode() ^ M12.GetHashCode() ^ M13.GetHashCode() ^
            M20.GetHashCode() ^ M21.GetHashCode() ^ M22.GetHashCode() ^ M23.GetHashCode() ^
            M30.GetHashCode() ^ M31.GetHashCode() ^ M32.GetHashCode() ^ M33.GetHashCode());
 }
Ejemplo n.º 4
0
    private void telaMudarAparencia()
    {
        resposta1.SetActive(false);
        resposta2.SetActive(false);
        resposta3.SetActive(true);

        M01.SetActive(true);
        M02.SetActive(true);
        M03.SetActive(true);
        F01.SetActive(true);
        F02.SetActive(true);
        F03.SetActive(true);

        textoConversa.text  = "Para mudar sua aparencia, você precisa de 100 moedas! Escolha uma das opções abaixo.";
        textoResposta3.text = "Voltar";

        parte = "telaMudarAparencia";
    }
Ejemplo n.º 5
0
    private void inicio()
    {
        resposta1.SetActive(true);
        resposta2.SetActive(true);
        resposta3.SetActive(true);
        objNome.SetActive(false);
        M01.SetActive(false);
        M02.SetActive(false);
        M03.SetActive(false);
        F01.SetActive(false);
        F02.SetActive(false);
        F03.SetActive(false);

        textoConversa.text  = "Olá! Bem vindo ao mercado, o que deseja?";
        textoResposta1.text = "Eu quero mudar meu nome!";
        textoResposta2.text = "Eu quero mudar de aparencia!";
        textoResposta3.text = "Eu quero vender meus itens!";

        parte = "inicio";
    }
Ejemplo n.º 6
0
    private void naoTemMoedaAparencia()
    {
        resposta1.SetActive(true);
        resposta2.SetActive(false);
        resposta3.SetActive(false);

        M01.SetActive(false);
        M02.SetActive(false);
        M03.SetActive(false);
        F01.SetActive(false);
        F02.SetActive(false);
        F03.SetActive(false);

        textoConversa.text  = "Você não tem moedas suficientes para comprar essa aparencia :c";
        textoResposta1.text = "Voltar";

        semDinheiro.Play(0);

        parte = "naoTemMoedaAparencia";
    }
Ejemplo n.º 7
0
 public void fecharConversaVendedor()
 {
     btnVendedor.SetActive(true);
     bkgConversa.SetActive(false);
     resposta1.SetActive(false);
     resposta2.SetActive(false);
     resposta3.SetActive(false);
     objNome.SetActive(false);
     btnSair.SetActive(false);
     M01.SetActive(false);
     M02.SetActive(false);
     M03.SetActive(false);
     F01.SetActive(false);
     F02.SetActive(false);
     F03.SetActive(false);
     for (int n = 0; n != 6; n++)
     {
         gitens[n].SetActive(false);
     }
     Time.timeScale = 1;
 }
Ejemplo n.º 8
0
        //// ===========================================================================================================
        //// Equality Members
        //// ===========================================================================================================

        public bool Equals(Matrix4x4 other)
        {
            // Check the diagonals first to see if we can exit early for identity matrix equality.
            return(M00.IsApproximatelyEqual(other.M00) &&
                   M11.IsApproximatelyEqual(other.M11) &&
                   M22.IsApproximatelyEqual(other.M22) &&
                   M33.IsApproximatelyEqual(other.M33) &&

                   M01.IsApproximatelyEqual(other.M01) &&
                   M02.IsApproximatelyEqual(other.M02) &&
                   M03.IsApproximatelyEqual(other.M03) &&

                   M10.IsApproximatelyEqual(other.M10) &&
                   M12.IsApproximatelyEqual(other.M12) &&
                   M13.IsApproximatelyEqual(other.M13) &&

                   M20.IsApproximatelyEqual(other.M20) &&
                   M21.IsApproximatelyEqual(other.M21) &&
                   M23.IsApproximatelyEqual(other.M23) &&

                   M30.IsApproximatelyEqual(other.M30) &&
                   M31.IsApproximatelyEqual(other.M31) &&
                   M32.IsApproximatelyEqual(other.M32));
        }
Ejemplo n.º 9
0
 public override int GetHashCode()
 {
     return(HashCode.Combine(
                HashCode.Combine(M00.RoundToEpsilon(), M01.RoundToEpsilon(), M02.RoundToEpsilon(), M03.RoundToEpsilon()),
                HashCode.Combine(M10.RoundToEpsilon(), M11.RoundToEpsilon(), M12.RoundToEpsilon(), M13.RoundToEpsilon()),
                HashCode.Combine(M20.RoundToEpsilon(), M21.RoundToEpsilon(), M22.RoundToEpsilon(), M23.RoundToEpsilon()),
                HashCode.Combine(M30.RoundToEpsilon(), M31.RoundToEpsilon(), M32.RoundToEpsilon(), M33.RoundToEpsilon())));
 }
Ejemplo n.º 10
0
        //#endif

        #endregion

        #region IEquatable<Matrix4x4d> Members

        public bool Equals(Matrix4x4d other)
        {
            // Check reference first.
            if (object.ReferenceEquals(this, other))
            {
                return(true);
            }

            // Check for value equality.
            if (!M00.Equals(other.M00))
            {
                return(false);
            }
            if (!M10.Equals(other.M10))
            {
                return(false);
            }
            if (!M20.Equals(other.M20))
            {
                return(false);
            }
            if (!M30.Equals(other.M30))
            {
                return(false);
            }
            if (!M01.Equals(other.M01))
            {
                return(false);
            }
            if (!M11.Equals(other.M11))
            {
                return(false);
            }
            if (!M21.Equals(other.M21))
            {
                return(false);
            }
            if (!M31.Equals(other.M31))
            {
                return(false);
            }
            if (!M02.Equals(other.M02))
            {
                return(false);
            }
            if (!M12.Equals(other.M12))
            {
                return(false);
            }
            if (!M22.Equals(other.M22))
            {
                return(false);
            }
            if (!M32.Equals(other.M32))
            {
                return(false);
            }
            if (!M03.Equals(other.M03))
            {
                return(false);
            }
            if (!M13.Equals(other.M13))
            {
                return(false);
            }
            if (!M23.Equals(other.M23))
            {
                return(false);
            }
            if (!M33.Equals(other.M33))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 11
0
    public void testarImagem()
    {
        if (idQuestão == "172")
        {
            S01.SetActive(true);

            S02.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "170")
        {
            S02.SetActive(true);

            S01.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "171")
        {
            S03.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "169")
        {
            S04.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S03.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "168")
        {
            S05.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "167")
        {
            S06.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S07.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "166")
        {
            S07.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S08.SetActive(false);
        }
        if (idQuestão == "165")
        {
            S08.SetActive(true);

            S01.SetActive(false);
            S02.SetActive(false);
            S03.SetActive(false);
            S04.SetActive(false);
            S05.SetActive(false);
            S06.SetActive(false);
            S07.SetActive(false);
        }

        if (idQuestão == "173")
        {
            D01.SetActive(true);

            D02.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "174")
        {
            D02.SetActive(true);

            D01.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "175")
        {
            D03.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "176")
        {
            D04.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D03.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "177")
        {
            D05.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "178")
        {
            D06.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D07.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "179")
        {
            D07.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D08.SetActive(false);
        }
        if (idQuestão == "180")
        {
            D08.SetActive(true);

            D01.SetActive(false);
            D02.SetActive(false);
            D03.SetActive(false);
            D04.SetActive(false);
            D05.SetActive(false);
            D06.SetActive(false);
            D07.SetActive(false);
        }

        if (idQuestão == "181")
        {
            M01.SetActive(true);

            M02.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "182")
        {
            M02.SetActive(true);

            M01.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "183")
        {
            M03.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "184")
        {
            M04.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M03.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "185")
        {
            M05.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "186")
        {
            M06.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M07.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "187")
        {
            M07.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M08.SetActive(false);
        }
        if (idQuestão == "188")
        {
            M08.SetActive(true);

            M01.SetActive(false);
            M02.SetActive(false);
            M03.SetActive(false);
            M04.SetActive(false);
            M05.SetActive(false);
            M06.SetActive(false);
            M07.SetActive(false);
        }
    }
Ejemplo n.º 12
0
 public override string ToString()
 {
     return(M00.ToString() + "," + M01.ToString() + "," + M02.ToString() + "," + M03.ToString() + "\r\n"
            + M10.ToString() + "," + M11.ToString() + "," + M12.ToString() + "," + M13.ToString() + "\r\n"
            + M20.ToString() + "," + M21.ToString() + "," + M22.ToString() + "," + M23.ToString() + "\r\n"
            + M30.ToString() + "," + M31.ToString() + "," + M32.ToString() + "," + M33.ToString());
 }
Ejemplo n.º 13
0
    private void temMoedaAparencia()
    {
        resposta1.SetActive(true);
        resposta2.SetActive(false);
        resposta3.SetActive(false);

        M01.SetActive(false);
        M02.SetActive(false);
        M03.SetActive(false);
        F01.SetActive(false);
        F02.SetActive(false);
        F03.SetActive(false);

        compraVenda.Play(0);

        personagem Char = new personagem();
        ranking    r    = new ranking();

        switch (parte)
        {
        case "M01":
            Player.runtimeAnimatorController = aM01;
            Char.Sexo   = 1;
            Char.Estilo = 1;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 11;
            break;

        case "M02":
            Player.runtimeAnimatorController = aM02;
            Char.Sexo   = 1;
            Char.Estilo = 2;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 12;
            break;

        case "M03":
            Player.runtimeAnimatorController = aM03;
            Char.Sexo   = 1;
            Char.Estilo = 3;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 13;
            break;

        case "F01":
            Player.runtimeAnimatorController = aF01;
            Char.Sexo   = 2;
            Char.Estilo = 1;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 21;
            break;

        case "F02":
            Player.runtimeAnimatorController = aF02;
            Char.Sexo   = 2;
            Char.Estilo = 2;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 22;
            break;

        case "F03":
            Player.runtimeAnimatorController = aF03;
            Char.Sexo   = 2;
            Char.Estilo = 3;
            Char.Moedas = Char.Moedas - 100;
            r.ImgLogica = 23;
            break;
        }

        textoConversa.text  = "Parabens! Você comprou uma aparencia";
        textoResposta1.text = "Voltar";

        parte = "temMoedaAparencia";
    }