Ejemplo n.º 1
0
 public void Start()
 {
     cli1_1.text = "";
     cli2_1.text = "";
     cli1_2.text = "";
     cli2_2.text = "";
     cli1_3.text = "";
     cli2_3.text = "";
     cli1_4.text = "";
     cli2_4.text = "";
     cli1_5.text = "";
     cli2_5.text = "";
     F1.SetActive(false);
     H1.SetActive(false);
     H11.SetActive(false);
     F2.SetActive(false);
     H2.SetActive(false);
     H22.SetActive(false);
     F3.SetActive(false);
     H3.SetActive(false);
     H33.SetActive(false);
     F4.SetActive(false);
     H4.SetActive(false);
     H44.SetActive(false);
     F5.SetActive(false);
     H5.SetActive(false);
     H55.SetActive(false);
 }
Ejemplo n.º 2
0
    public void ClearMenuAttempts()
    {
        F1.SetActive(false);
        H1.SetActive(false);
        H11.SetActive(false);
        F2.SetActive(false);
        H2.SetActive(false);
        H22.SetActive(false);
        F3.SetActive(false);
        H3.SetActive(false);
        H33.SetActive(false);
        F4.SetActive(false);
        H4.SetActive(false);
        H44.SetActive(false);
        F5.SetActive(false);
        H5.SetActive(false);
        H55.SetActive(false);

        cli1_1.SetText(""); cli2_1.SetText("");
        cli1_2.SetText(""); cli2_2.SetText("");
        cli1_3.SetText(""); cli2_3.SetText("");
        cli1_4.SetText(""); cli2_4.SetText("");
        cli1_5.SetText(""); cli2_5.SetText("");
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        PlayerIcon.GetComponent <SpriteRenderer>().enabled = true;
        A1.GetComponent <SpriteRenderer>().enabled         = false;
        A2.GetComponent <SpriteRenderer>().enabled         = false;
        A3.GetComponent <SpriteRenderer>().enabled         = false;
        A4.GetComponent <SpriteRenderer>().enabled         = false;
        A5.GetComponent <SpriteRenderer>().enabled         = false;
        A6.GetComponent <SpriteRenderer>().enabled         = false;
        A7.GetComponent <SpriteRenderer>().enabled         = false;
        A8.GetComponent <SpriteRenderer>().enabled         = false;
        A9.GetComponent <SpriteRenderer>().enabled         = false;
        A10.GetComponent <SpriteRenderer>().enabled        = false;
        A11.GetComponent <SpriteRenderer>().enabled        = false;
        B1.GetComponent <SpriteRenderer>().enabled         = false;
        B2.GetComponent <SpriteRenderer>().enabled         = false;
        B3.GetComponent <SpriteRenderer>().enabled         = false;
        B4.GetComponent <SpriteRenderer>().enabled         = false;
        B5.GetComponent <SpriteRenderer>().enabled         = false;
        B6.GetComponent <SpriteRenderer>().enabled         = false;
        B7.GetComponent <SpriteRenderer>().enabled         = false;
        B8.GetComponent <SpriteRenderer>().enabled         = false;
        B9.GetComponent <SpriteRenderer>().enabled         = false;
        B10.GetComponent <SpriteRenderer>().enabled        = false;
        B11.GetComponent <SpriteRenderer>().enabled        = false;
        C1.GetComponent <SpriteRenderer>().enabled         = false;
        C2.GetComponent <SpriteRenderer>().enabled         = false;
        C3.GetComponent <SpriteRenderer>().enabled         = false;
        C4.GetComponent <SpriteRenderer>().enabled         = false;
        C5.GetComponent <SpriteRenderer>().enabled         = false;
        C6.GetComponent <SpriteRenderer>().enabled         = false;
        C7.GetComponent <SpriteRenderer>().enabled         = false;
        C8.GetComponent <SpriteRenderer>().enabled         = false;
        C9.GetComponent <SpriteRenderer>().enabled         = false;
        C10.GetComponent <SpriteRenderer>().enabled        = false;
        C11.GetComponent <SpriteRenderer>().enabled        = false;
        D1.GetComponent <SpriteRenderer>().enabled         = false;
        D2.GetComponent <SpriteRenderer>().enabled         = false;
        D3.GetComponent <SpriteRenderer>().enabled         = false;
        D4.GetComponent <SpriteRenderer>().enabled         = false;
        D5.GetComponent <SpriteRenderer>().enabled         = false;
        D6.GetComponent <SpriteRenderer>().enabled         = false;
        D7.GetComponent <SpriteRenderer>().enabled         = false;
        D8.GetComponent <SpriteRenderer>().enabled         = false;
        D9.GetComponent <SpriteRenderer>().enabled         = false;
        D10.GetComponent <SpriteRenderer>().enabled        = false;
        D11.GetComponent <SpriteRenderer>().enabled        = false;
        E1.GetComponent <SpriteRenderer>().enabled         = false;
        E2.GetComponent <SpriteRenderer>().enabled         = false;
        E3.GetComponent <SpriteRenderer>().enabled         = false;
        E4.GetComponent <SpriteRenderer>().enabled         = false;
        E5.GetComponent <SpriteRenderer>().enabled         = false;
        E6.GetComponent <SpriteRenderer>().enabled         = false;
        E7.GetComponent <SpriteRenderer>().enabled         = false;
        E8.GetComponent <SpriteRenderer>().enabled         = false;
        E9.GetComponent <SpriteRenderer>().enabled         = false;
        E10.GetComponent <SpriteRenderer>().enabled        = false;
        E11.GetComponent <SpriteRenderer>().enabled        = false;
        F1.GetComponent <SpriteRenderer>().enabled         = false;
        F2.GetComponent <SpriteRenderer>().enabled         = false;
        F3.GetComponent <SpriteRenderer>().enabled         = false;
        F4.GetComponent <SpriteRenderer>().enabled         = false;
        F5.GetComponent <SpriteRenderer>().enabled         = false;
        F6.GetComponent <SpriteRenderer>().enabled         = false;
        F7.GetComponent <SpriteRenderer>().enabled         = false;
        F8.GetComponent <SpriteRenderer>().enabled         = false;
        F9.GetComponent <SpriteRenderer>().enabled         = false;
        F10.GetComponent <SpriteRenderer>().enabled        = false;
        F11.GetComponent <SpriteRenderer>().enabled        = false;
        G1.GetComponent <SpriteRenderer>().enabled         = false;
        G2.GetComponent <SpriteRenderer>().enabled         = false;
        G3.GetComponent <SpriteRenderer>().enabled         = false;
        G4.GetComponent <SpriteRenderer>().enabled         = false;
        G5.GetComponent <SpriteRenderer>().enabled         = false;
        G6.GetComponent <SpriteRenderer>().enabled         = false;
        G7.GetComponent <SpriteRenderer>().enabled         = false;
        G8.GetComponent <SpriteRenderer>().enabled         = false;
        G9.GetComponent <SpriteRenderer>().enabled         = false;
        G10.GetComponent <SpriteRenderer>().enabled        = false;
        G11.GetComponent <SpriteRenderer>().enabled        = false;
        H1.GetComponent <SpriteRenderer>().enabled         = false;
        H2.GetComponent <SpriteRenderer>().enabled         = false;
        H3.GetComponent <SpriteRenderer>().enabled         = false;
        H4.GetComponent <SpriteRenderer>().enabled         = false;
        H5.GetComponent <SpriteRenderer>().enabled         = false;
        H6.GetComponent <SpriteRenderer>().enabled         = false;
        H7.GetComponent <SpriteRenderer>().enabled         = false;
        H8.GetComponent <SpriteRenderer>().enabled         = false;
        H9.GetComponent <SpriteRenderer>().enabled         = false;
        H10.GetComponent <SpriteRenderer>().enabled        = false;
        H11.GetComponent <SpriteRenderer>().enabled        = false;
        I1.GetComponent <SpriteRenderer>().enabled         = false;
        I2.GetComponent <SpriteRenderer>().enabled         = false;
        I3.GetComponent <SpriteRenderer>().enabled         = false;
        I4.GetComponent <SpriteRenderer>().enabled         = false;
        I5.GetComponent <SpriteRenderer>().enabled         = false;
        I6.GetComponent <SpriteRenderer>().enabled         = false;
        I7.GetComponent <SpriteRenderer>().enabled         = false;
        I8.GetComponent <SpriteRenderer>().enabled         = false;
        I9.GetComponent <SpriteRenderer>().enabled         = false;
        I10.GetComponent <SpriteRenderer>().enabled        = false;
        I11.GetComponent <SpriteRenderer>().enabled        = false;
        J1.GetComponent <SpriteRenderer>().enabled         = false;
        J2.GetComponent <SpriteRenderer>().enabled         = false;
        J3.GetComponent <SpriteRenderer>().enabled         = false;
        J4.GetComponent <SpriteRenderer>().enabled         = false;
        J5.GetComponent <SpriteRenderer>().enabled         = false;
        J6.GetComponent <SpriteRenderer>().enabled         = false;
        J7.GetComponent <SpriteRenderer>().enabled         = false;
        J8.GetComponent <SpriteRenderer>().enabled         = false;
        J9.GetComponent <SpriteRenderer>().enabled         = false;
        J10.GetComponent <SpriteRenderer>().enabled        = false;
        J11.GetComponent <SpriteRenderer>().enabled        = false;
        K1.GetComponent <SpriteRenderer>().enabled         = false;
        K2.GetComponent <SpriteRenderer>().enabled         = false;
        K3.GetComponent <SpriteRenderer>().enabled         = false;
        K4.GetComponent <SpriteRenderer>().enabled         = false;
        K5.GetComponent <SpriteRenderer>().enabled         = false;
        K6.GetComponent <SpriteRenderer>().enabled         = false;
        K7.GetComponent <SpriteRenderer>().enabled         = false;
        K8.GetComponent <SpriteRenderer>().enabled         = false;
        K9.GetComponent <SpriteRenderer>().enabled         = false;
        K10.GetComponent <SpriteRenderer>().enabled        = false;
        K11.GetComponent <SpriteRenderer>().enabled        = false;
        float ratio = Screen.width / Screen.height;

        if (ratio < 2)
        {
            int screenx = 543;
            int screeny = 653;
        }
        else
        {
            int screenx = 743;
            int screeny = 853;
        }
    }
Ejemplo n.º 4
0
    /// <summary>
    /// Traz dados da Fase para o Menu de Tentativas
    /// </summary>
    /// <param name="GC">Controlador do Game</param>
    public void F_AttemptsMenu(GameController GC) //Função referente à "tela" de tentativas
    {
        if (GC.attempts != 0)
        {
            imgMenuT.SetActive(true);

            ///------------------/// ///------------------///  ///------------------///
            if (GC.attempts == 1)
            {
                cli1_1.text = GC.click1[0];
                cli2_1.text = GC.click2[0];


                if (GC.result[0] == "F")
                {
                    F1.SetActive(true);
                    F1.transform.localPosition = new Vector3(-112, 231, 0);

                    H1.SetActive(false);
                }

                if (GC.result[0] == "H")
                {
                    H1.SetActive(true);
                    H1.transform.localPosition = new Vector3(-112, 231, 0);

                    F1.SetActive(false);
                }
                else if (GC.result[0] == "HH")
                {
                    H1.SetActive(true);
                    H11.SetActive(true);
                    H1.transform.localPosition  = new Vector3(-201, 231, 0);
                    H11.transform.localPosition = new Vector3(-112, 231, 0);
                }
                ///------------------///
            }
            else if (GC.attempts == 2)
            {
                //--------------//
                cli1_1.text = GC.click1[0];
                cli2_1.text = GC.click2[0];
                ///------------------///
                cli1_2.text = GC.click1[1];
                cli2_2.text = GC.click2[1];


                if (GC.result[0] == "F")
                {
                    F1.SetActive(true);
                    F1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);

                    H1.SetActive(false);
                }
                if (GC.result[0] == "H")
                {
                    H1.SetActive(true);
                    H1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);
                    F1.SetActive(false);
                }
                else if (GC.result[0] == "HH")
                {
                    H1.SetActive(true);
                    H11.SetActive(true);
                    H1.transform.localPosition  = new Vector3(-201, 231, 0);
                    H11.transform.localPosition = new Vector3(-112, 231, 0);
                }
                ///------------------///
                ///------------------///
                if (GC.result[1] == "F")
                {
                    F2.SetActive(true);
                    F2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);

                    H2.SetActive(false);
                }
                if (GC.result[1] == "H")
                {
                    H2.SetActive(true);
                    H2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);
                    F2.SetActive(false);
                }
                else if (GC.result[1] == "HH")
                {
                    H2.SetActive(true);
                    H22.SetActive(true);
                    H2.transform.localPosition  = new Vector3(-201, 127, 0);
                    H22.transform.localPosition = new Vector3(-112, 127, 0);
                }
            }
            else if (GC.attempts == 3)
            {
                //--------------//
                cli1_1.text = GC.click1[0];
                cli2_1.text = GC.click2[0];
                ///------------------///
                cli1_2.text = GC.click1[1];
                cli2_2.text = GC.click2[1];
                ///------------------///
                cli1_3.text = GC.click1[2];
                cli2_3.text = GC.click2[2];

                if (GC.result[0] == "F")
                {
                    F1.SetActive(true);
                    F1.transform.localPosition = new Vector3(-112, 231, 0);

                    H1.SetActive(false);
                }
                if (GC.result[0] == "H")
                {
                    H1.SetActive(true);
                    H1.transform.localPosition = new Vector3(-112, 231, 0);

                    F1.SetActive(false);
                }
                else if (GC.result[0] == "HH")
                {
                    H1.SetActive(true);
                    H11.SetActive(true);
                    H1.transform.localPosition  = new Vector3(-201, 231, 0);
                    H11.transform.localPosition = new Vector3(-112, 231, 0);
                }
                ///------------------///
                ///------------------///
                if (GC.result[1] == "F")
                {
                    F2.SetActive(true);
                    F2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);
                    H2.SetActive(false);
                }
                if (GC.result[1] == "H")
                {
                    H2.SetActive(true);
                    H2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);

                    F2.SetActive(false);
                }
                else if (GC.result[1] == "HH")
                {
                    H2.SetActive(true);
                    H22.SetActive(true);
                    H2.transform.localPosition  = new Vector3(-201, 127, 0);
                    H22.transform.localPosition = new Vector3(-112, 127, 0);
                }
                ///------------------///

                if (GC.result[2] == "F")
                {
                    F3.SetActive(true);
                    F3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);
                    H3.SetActive(false);
                }
                if (GC.result[2] == "H")
                {
                    H3.SetActive(true);
                    H3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);

                    F3.SetActive(false);
                }
                else if (GC.result[2] == "HH")
                {
                    H3.SetActive(true);
                    H33.SetActive(true);
                    H3.transform.localPosition  = new Vector3(-201, 26, 0);
                    H33.transform.localPosition = new Vector3(-112, 26, 0);
                }
            }
            //**************************//
            else if (GC.attempts == 4)
            {
                cli1_1.text = GC.click1[0];
                cli2_1.text = GC.click2[0];
                ///------------------///
                cli1_2.text = GC.click1[1];
                cli2_2.text = GC.click2[1];
                ///------------------///
                cli1_3.text = GC.click1[2];
                cli2_3.text = GC.click2[2];
                ///------------------///
                cli1_4.text = GC.click1[3];
                cli2_4.text = GC.click2[3];

                /// ///------------------//////------------------//////------------------///
                if (GC.result[0] == "F")
                {
                    F1.SetActive(true);
                    F1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);
                    H1.SetActive(false);
                }
                if (GC.result[0] == "H")
                {
                    H1.SetActive(true);
                    H1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);

                    F1.SetActive(false);
                }
                else if (GC.result[0] == "HH")
                {
                    H1.SetActive(true);
                    H11.SetActive(true);
                    H1.transform.localPosition  = new Vector3(-201, 231, 0);
                    H11.transform.localPosition = new Vector3(-112, 231, 0);
                }
                ///------------------///
                ///------------------///
                if (GC.result[1] == "F")
                {
                    F2.SetActive(true);
                    F2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);
                    H2.SetActive(false);
                }
                if (GC.result[1] == "H")
                {
                    H2.SetActive(true);
                    H2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);

                    F2.SetActive(false);
                }
                else if (GC.result[1] == "HH")
                {
                    H2.SetActive(true);
                    H22.SetActive(true);
                    H2.transform.localPosition  = new Vector3(-201, 127, 0);
                    H22.transform.localPosition = new Vector3(-112, 127, 0);
                }
                ///------------------///

                if (GC.result[2] == "F")
                {
                    F3.SetActive(true);
                    F3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);
                    H3.SetActive(false);
                }
                if (GC.result[2] == "H")
                {
                    H3.SetActive(true);
                    H3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);
                    F3.SetActive(false);
                }
                else if (GC.result[2] == "HH")
                {
                    H3.SetActive(true);
                    H33.SetActive(true);
                    H3.transform.localPosition  = new Vector3(-201, 26, 0);
                    H33.transform.localPosition = new Vector3(-112, 26, 0);
                }

                ///------------------///
                if (GC.result[3] == "F")
                {
                    F4.SetActive(true);
                    F4.transform.localPosition = new Vector3(-112, -70, 0);
                    H44.SetActive(false);
                    H4.SetActive(false);
                }
                if (GC.result[3] == "H")
                {
                    H4.SetActive(true);
                    H4.transform.localPosition = new Vector3(-112, -70, 0);
                    H44.SetActive(false);
                    F4.SetActive(false);
                }
                else if (GC.result[3] == "HH")
                {
                    H4.SetActive(true);
                    H4.transform.localPosition = new Vector3(-201, -70, 0);
                    H44.SetActive(true);
                    H44.transform.localPosition = new Vector3(-112, -70, 0);
                }
                ///------------------///
            }
            ///------------------//////------------------//////------------------//////------------------//////------------------///
            else if (GC.attempts == 5)
            {
                cli1_1.text = GC.click1[0];
                cli2_1.text = GC.click2[0];
                ///------------------///
                cli1_2.text = GC.click1[1];
                cli2_2.text = GC.click2[1];
                ///------------------///
                cli1_3.text = GC.click1[2];
                cli2_3.text = GC.click2[2];
                ///------------------///
                cli1_4.text = GC.click1[3];
                cli2_4.text = GC.click2[3];
                ///------------------///
                cli1_5.text = GC.click1[4];
                cli2_5.text = GC.click2[4];
                ///------------------/// ///------------------//////------------------//////------------------///
                if (GC.result[0] == "F")
                {
                    F1.SetActive(true);
                    F1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);
                    H1.SetActive(false);
                }
                if (GC.result[0] == "H")
                {
                    H1.SetActive(true);
                    H1.transform.localPosition = new Vector3(-112, 231, 0);
                    H11.SetActive(false);

                    F1.SetActive(false);
                }
                else if (GC.result[0] == "HH")
                {
                    H1.SetActive(true);
                    H11.SetActive(true);
                    H1.transform.localPosition  = new Vector3(-201, 231, 0);
                    H11.transform.localPosition = new Vector3(-112, 231, 0);
                }
                ///------------------///
                ///------------------///
                if (GC.result[1] == "F")
                {
                    F2.SetActive(true);
                    F2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);
                    H2.SetActive(false);
                }
                if (GC.result[1] == "H")
                {
                    H2.SetActive(true);
                    H2.transform.localPosition = new Vector3(-112, 127, 0);
                    H22.SetActive(false);

                    F2.SetActive(false);
                }
                else if (GC.result[1] == "HH")
                {
                    H2.SetActive(true);
                    H22.SetActive(true);
                    H2.transform.localPosition  = new Vector3(-201, 127, 0);
                    H22.transform.localPosition = new Vector3(-112, 127, 0);
                }
                ///------------------///
                ///------------------///
                if (GC.result[2] == "F")
                {
                    F3.SetActive(true);
                    F3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);
                    H3.SetActive(false);
                }
                if (GC.result[2] == "H")
                {
                    H3.SetActive(true);
                    H3.transform.localPosition = new Vector3(-112, 26, 0);
                    H33.SetActive(false);

                    F3.SetActive(false);
                }
                else if (GC.result[2] == "HH")
                {
                    H3.SetActive(true);
                    H33.SetActive(true);
                    H3.transform.localPosition  = new Vector3(-201, 26, 0);
                    H33.transform.localPosition = new Vector3(-112, 26, 0);
                }

                ///------------------///
                if (GC.result[3] == "F")
                {
                    F4.SetActive(true);
                    F4.transform.localPosition = new Vector3(-112, -70, 0);
                    H44.SetActive(false);
                    H4.SetActive(false);
                }
                if (GC.result[3] == "H")
                {
                    H4.SetActive(true);
                    H4.transform.localPosition = new Vector3(-112, -70, 0);
                    H44.SetActive(false);

                    F4.SetActive(false);
                }
                else if (GC.result[3] == "HH")
                {
                    H4.SetActive(true);
                    H4.transform.localPosition = new Vector3(-201, -70, 0);
                    H44.SetActive(true);
                    H44.transform.localPosition = new Vector3(-112, -70, 0);
                }
                ///------------------///
                if (GC.result[4] == "F")
                {
                    F5.SetActive(true);
                    F5.transform.localPosition = new Vector3(-112, -178, 0);
                    H55.SetActive(false);
                    H5.SetActive(false);
                }
                if (GC.result[4] == "H")
                {
                    H5.SetActive(true);
                    H5.transform.localPosition = new Vector3(-112, -178, 0);
                    H55.SetActive(false);
                    F5.SetActive(false);
                }
                else if (GC.result[4] == "HH")
                {
                    H4.SetActive(true);
                    H44.SetActive(true);
                    H4.transform.localPosition  = new Vector3(-201, 231, 0);
                    H44.transform.localPosition = new Vector3(-112, 231, 0);
                }
            }
        }
    }