protected override byte[] HashFinal()
        {
            uint len = (uint)Length;

            H1 ^= len; H2 ^= len; H3 ^= len; H4 ^= len;

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            H1 = H1.FMix();
            H2 = H2.FMix();
            H3 = H3.FMix();
            H4 = H4.FMix();

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            var result = new byte[16];

            Array.Copy(BitConverter.GetBytes(H1), 0, result, 0, 4);
            Array.Copy(BitConverter.GetBytes(H2), 0, result, 4, 4);
            Array.Copy(BitConverter.GetBytes(H3), 0, result, 8, 4);
            Array.Copy(BitConverter.GetBytes(H4), 0, result, 12, 4);

            return(result);
        }
        private void Body(byte[] data, int start, int length)
        {
            int remainder     = length & 15;
            int alignedLength = start + (length - remainder);

            for (int i = start; i < alignedLength; i += 16)
            {
                uint k1 = data.ToUInt32(i),
                     k2 = data.ToUInt32(i + 4),
                     k3 = data.ToUInt32(i + 8),
                     k4 = data.ToUInt32(i + 12);

                H1 ^= (k1 * C1).RotateLeft(15) * C2;
                H1  = (H1.RotateLeft(19) + H2) * 5 + 0x561ccd1b;

                H2 ^= (k2 * C2).RotateLeft(16) * C3;
                H2  = (H2.RotateLeft(17) + H3) * 5 + 0x0bcaa747;

                H3 ^= (k3 * C3).RotateLeft(17) * C4;
                H3  = (H3.RotateLeft(15) + H4) * 5 + 0x96cd1c35;

                H4 ^= (k4 * C4).RotateLeft(18) * C1;
                H4  = (H4.RotateLeft(13) + H1) * 5 + 0x32ac3b17;
            }

            if (remainder > 0)
            {
                Tail(data, alignedLength, remainder);
            }
        }
        protected override bool TryHashFinal(Span <byte> destination, out int bytesWritten)
        {
            if (destination.Length < 16)
            {
                bytesWritten = 0;
                return(false);
            }

            var len = (uint)Length;

            // pipelining friendly algorithm
            H1 ^= len; H2 ^= len; H3 ^= len; H4 ^= len;

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            H1 = H1.FMix();
            H2 = H2.FMix();
            H3 = H3.FMix();
            H4 = H4.FMix();

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            var uintDestination = MemoryMarshal.Cast <byte, uint>(destination);

            uintDestination[0] = H1;
            uintDestination[1] = H2;
            uintDestination[2] = H3;
            uintDestination[3] = H4;
            bytesWritten       = 16;
            return(true);
        }
Exemple #4
0
        public void Reset(Control host)
        {
            H1.Reset(host);
            H2.Reset(host);
            H3.Reset(host);
            H4.Reset(host);
            H5.Reset(host);
            H6.Reset(host);
            BlockQuote.Reset(host);
            P.Reset(host);
            FigCaption.Reset(host);
            Pre.Reset(host);
            Dt.Reset(host);
            Dd.Reset(host);

            Li.Reset(host);

            A.Reset(host);
            Span.Reset(host);
            Label.Reset(host);
            Q.Reset(host);
            Cite.Reset(host);
            I.Reset(host);
            Em.Reset(host);
            Mark.Reset(host);
            Time.Reset(host);
            Code.Reset(host);
            Strong.Reset(host);
        }
 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);
 }
        protected override byte[] HashFinal()
        {
            uint len = (uint)Length;

            // pipelining friendly algorithm
            H1 ^= len; H2 ^= len; H3 ^= len; H4 ^= len;

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            H1 = H1.FMix();
            H2 = H2.FMix();
            H3 = H3.FMix();
            H4 = H4.FMix();

            H1 += (H2 + H3 + H4);
            H2 += H1; H3 += H1; H4 += H1;

            var result = new byte[16];

            unsafe
            {
                fixed(byte *h = result)
                {
                    var r = (uint *)h;

                    r[0] = H1;
                    r[1] = H2;
                    r[2] = H3;
                    r[3] = H4;
                }
            }

            return(result);
        }
Exemple #7
0
        public void Merge(params DocumentStyle[] styles)
        {
            if (styles != null)
            {
                foreach (var style in styles)
                {
                    Section.Merge(style.Section);
                    Article.Merge(style.Article);
                    Header.Merge(style.Header);
                    Footer.Merge(style.Footer);
                    Main.Merge(style.Main);
                    Figure.Merge(style.Figure);
                    Details.Merge(style.Details);
                    Summary.Merge(style.Summary);
                    Div.Merge(style.Div);
                    Ul.Merge(style.Ul);
                    Ol.Merge(style.Ol);
                    Dl.Merge(style.Dl);
                    Td.Merge(style.Td);

                    Table.Merge(style.Table);

                    Img.Merge(style.Img);
                    YouTube.Merge(style.YouTube);
                    Channel9.Merge(style.Channel9);

                    H1.Merge(style.H1);
                    H2.Merge(style.H2);
                    H3.Merge(style.H3);
                    H4.Merge(style.H4);
                    H5.Merge(style.H5);
                    H6.Merge(style.H6);
                    BlockQuote.Merge(style.BlockQuote);
                    P.Merge(style.P);
                    FigCaption.Merge(style.FigCaption);
                    Pre.Merge(style.Pre);
                    Dt.Merge(style.Dt);
                    Dd.Merge(style.Dd);

                    Li.Merge(style.Li);

                    A.Merge(style.A);
                    Span.Merge(style.Span);
                    Label.Merge(style.Label);
                    Q.Merge(style.Q);
                    Cite.Merge(style.Cite);
                    I.Merge(style.I);
                    Em.Merge(style.Em);
                    Mark.Merge(style.Mark);
                    Time.Merge(style.Time);
                    Code.Merge(style.Code);
                    Strong.Merge(style.Strong);
                }
            }
        }
        private void Body(byte[] data, int start, int length)
        {
            if (length == 0)
            {
                return;
            }

            int remainder = length & 15;
            int blocks    = length / 16;

            unsafe
            {
                fixed(byte *d = &data[start])
                {
                    // grab a reference to blocks
                    uint *b = (uint *)d;

                    while (blocks-- > 0)
                    {
                        // K1 - consume first integer
                        H1 ^= (*b++ *C1).RotateLeft(15) * C2;
                        H1  = (H1.RotateLeft(19) + H2) * 5 + 0x561ccd1b;

                        // K2 - consume second integer
                        H2 ^= (*b++ *C2).RotateLeft(16) * C3;
                        H2  = (H2.RotateLeft(17) + H3) * 5 + 0x0bcaa747;

                        // K3 - consume third integer
                        H3 ^= (*b++ *C3).RotateLeft(17) * C4;
                        H3  = (H3.RotateLeft(15) + H4) * 5 + 0x96cd1c35;

                        // K4 - consume fourth integer
                        H4 ^= (*b++ *C4).RotateLeft(18) * C1;
                        H4  = (H4.RotateLeft(13) + H1) * 5 + 0x32ac3b17;
                    }

                    if (remainder > 0)
                    {
                        Tail(d + (length - remainder), remainder);
                    }
                }
            }
        }
        private void Body(ReadOnlySpan <byte> source)
        {
            if (source.Length == 0)
            {
                return;
            }

            var remainder = source.Length & 15;
            var blocks    = 4 * (source.Length / 16);

            if (blocks > 0)
            {
                var uintSource = MemoryMarshal.Cast <byte, uint>(source);
                var block      = 0;
                while (block < blocks)
                {
                    var k1 = uintSource[block++];
                    var k2 = uintSource[block++];
                    var k3 = uintSource[block++];
                    var k4 = uintSource[block++];

                    H1 ^= (k1 * C1).RotateLeft(15) * C2;
                    H1  = ((H1.RotateLeft(19) + H2) * 5) + 0x561ccd1b;

                    H2 ^= (k2 * C2).RotateLeft(16) * C3;
                    H2  = ((H2.RotateLeft(17) + H3) * 5) + 0x0bcaa747;

                    H3 ^= (k3 * C3).RotateLeft(17) * C4;
                    H3  = ((H3.RotateLeft(15) + H4) * 5) + 0x96cd1c35;

                    H4 ^= (k4 * C4).RotateLeft(18) * C1;
                    H4  = ((H4.RotateLeft(13) + H1) * 5) + 0x32ac3b17;
                }
            }

            if (remainder > 0)
            {
                Tail(source.Slice(4 * blocks));
            }
        }
Exemple #10
0
        /// <summary>
        /// Creates block element based on paragraph type
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        private static HTMLItem CreateBlock(ParagraphConvTargetEnumV2 type)
        {
            HTMLItem paragraph;

            switch (type)
            {
            case ParagraphConvTargetEnumV2.H1:
                paragraph = new H1(HTMLElementType.XHTML11);
                break;

            case ParagraphConvTargetEnumV2.H2:
                paragraph = new H2(HTMLElementType.XHTML11);
                break;

            case ParagraphConvTargetEnumV2.H3:
                paragraph = new H3(HTMLElementType.XHTML11);
                break;

            case ParagraphConvTargetEnumV2.H4:
                paragraph = new H4(HTMLElementType.XHTML11);
                break;

            case ParagraphConvTargetEnumV2.H5:
                paragraph = new H5(HTMLElementType.XHTML11);
                break;

            case ParagraphConvTargetEnumV2.H6:
                paragraph = new H6(HTMLElementType.XHTML11);
                break;

            default:     // Paragraph or anything else
                paragraph = new Paragraph(HTMLElementType.XHTML11);
                break;
            }
            return(paragraph);
        }
    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("");
    }
Exemple #12
0
    // Update is called once per frame
    void FixedUpdate()
    {
        velocidad.text = gameObject.GetComponent <Total>().v.magnitude.ToString();
        if (Input.GetKeyDown(KeyCode.Tab))
        {
            if (prendido == 0)
            {
                motor.text = "encendido";
                prendido   = 1;
                H1.GetComponent <T1>().encendido            = prendido;
                H2.GetComponent <T2>().encendido            = prendido;
                H3.GetComponent <T3>().encendido            = prendido;
                H4.GetComponent <T4>().encendido            = prendido;
                gameObject.GetComponent <Total>().encendido = prendido;

                H1.GetComponent <T1>().Fuerza.y = 10;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -10;
                H4.GetComponent <T4>().Fuerza.y = 10;
            }
            else
            {
                prendido   = 0;
                motor.text = "apagado";
                H1.GetComponent <T1>().encendido            = prendido;
                H2.GetComponent <T2>().encendido            = prendido;
                H3.GetComponent <T3>().encendido            = prendido;
                H4.GetComponent <T4>().encendido            = prendido;
                gameObject.GetComponent <Total>().encendido = prendido;
            }
        }

        if (Input.anyKey)
        {
            switch (Input.inputString)
            {
            case "q":
                movimiento.text = "q : elevarse";
                H1.GetComponent <T1>().Fuerza.y = 10;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -10;
                H4.GetComponent <T4>().Fuerza.y = 10;

                gameObject.GetComponent <Total>().q = true;
                gameObject.GetComponent <Total>().e = false;

                gameObject.GetComponent <Total>().a = false;
                gameObject.GetComponent <Total>().d = false;

                gameObject.GetComponent <Total>().w = false;
                gameObject.GetComponent <Total>().s = false;

                gameObject.GetComponent <Total>().reset = false;

                break;


            case "e":
                movimiento.text = "e : descender";
                H1.GetComponent <T1>().Fuerza.y = 11;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -11;
                H4.GetComponent <T4>().Fuerza.y = 10;

                gameObject.GetComponent <Total>().e = true;
                gameObject.GetComponent <Total>().q = false;

                gameObject.GetComponent <Total>().a = false;
                gameObject.GetComponent <Total>().d = false;

                gameObject.GetComponent <Total>().w = false;
                gameObject.GetComponent <Total>().s = false;

                gameObject.GetComponent <Total>().reset = false;

                break;

            case "a":
                movimiento.text = "a : izquierda";
                H1.GetComponent <T1>().Fuerza.y = 11;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -10;
                H4.GetComponent <T4>().Fuerza.y = 10;

                gameObject.GetComponent <Total>().e = false;
                gameObject.GetComponent <Total>().q = false;

                gameObject.GetComponent <Total>().a = true;
                gameObject.GetComponent <Total>().d = false;

                gameObject.GetComponent <Total>().w = false;
                gameObject.GetComponent <Total>().s = false;

                gameObject.GetComponent <Total>().reset = false;

                break;

            case "d":
                movimiento.text = "d : derecha";
                H1.GetComponent <T1>().Fuerza.y = 10;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -11;
                H4.GetComponent <T4>().Fuerza.y = 10;

                gameObject.GetComponent <Total>().e = false;
                gameObject.GetComponent <Total>().q = false;

                gameObject.GetComponent <Total>().a = false;
                gameObject.GetComponent <Total>().d = true;

                gameObject.GetComponent <Total>().w = false;
                gameObject.GetComponent <Total>().s = false;

                gameObject.GetComponent <Total>().reset = false;

                break;

            case "w":
                movimiento.text = "w : adelante";
                H1.GetComponent <T1>().Fuerza.y = 10;
                H2.GetComponent <T2>().Fuerza.y = -10;
                H3.GetComponent <T3>().Fuerza.y = -10;
                H4.GetComponent <T4>().Fuerza.y = 11;

                gameObject.GetComponent <Total>().e = false;
                gameObject.GetComponent <Total>().q = false;

                gameObject.GetComponent <Total>().a = false;
                gameObject.GetComponent <Total>().d = false;

                gameObject.GetComponent <Total>().w = true;
                gameObject.GetComponent <Total>().s = false;

                gameObject.GetComponent <Total>().reset = false;

                break;

            case "s":
                movimiento.text = "s : atras";
                H1.GetComponent <T1>().Fuerza.y = 10;
                H2.GetComponent <T2>().Fuerza.y = -11;
                H3.GetComponent <T3>().Fuerza.y = -10;
                H4.GetComponent <T4>().Fuerza.y = 10;

                gameObject.GetComponent <Total>().e = false;
                gameObject.GetComponent <Total>().q = false;

                gameObject.GetComponent <Total>().a = false;
                gameObject.GetComponent <Total>().d = false;

                gameObject.GetComponent <Total>().w = false;
                gameObject.GetComponent <Total>().s = true;

                gameObject.GetComponent <Total>().reset = false;

                break;

            default:
                break;
            }
        }
        else
        {
            movimiento.text = "estático";
            H1.GetComponent <T1>().Fuerza.y = 10;
            H2.GetComponent <T2>().Fuerza.y = -10;
            H3.GetComponent <T3>().Fuerza.y = -10;
            H4.GetComponent <T4>().Fuerza.y = 10;

            gameObject.GetComponent <Total>().e = false;
            gameObject.GetComponent <Total>().q = false;

            gameObject.GetComponent <Total>().a = false;
            gameObject.GetComponent <Total>().d = false;

            gameObject.GetComponent <Total>().w     = false;
            gameObject.GetComponent <Total>().s     = false;
            gameObject.GetComponent <Total>().reset = true;
        }
    }
    /// <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);
                }
            }
        }
    }
        public HTMLItem Convert(FB2File fb2File, ConverterOptionsV3 settings)
        {
            if (fb2File == null)
            {
                throw new ArgumentNullException("fb2File");
            }
            var info   = new Div(HTMLElementType.HTML5);
            var header = new H3(HTMLElementType.HTML5);

            header.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
            {
                Text = "FB2 document info"
            });
            info.Add(header);
            if (fb2File.DocumentInfo != null)
            {
                if (!string.IsNullOrEmpty(fb2File.DocumentInfo.ID))
                {
                    var p = new Paragraph(HTMLElementType.HTML5);
                    p.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = string.Format("Document ID:  {0}", fb2File.DocumentInfo.ID)
                    });
                    info.Add(p);
                }
                if (fb2File.DocumentInfo.DocumentVersion.HasValue)
                {
                    var p = new Paragraph(HTMLElementType.HTML5);
                    p.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = string.Format("Document version:  {0}", fb2File.DocumentInfo.DocumentVersion)
                    });
                    info.Add(p);
                }
                if ((fb2File.DocumentInfo.DocumentDate != null) && !string.IsNullOrEmpty(fb2File.DocumentInfo.DocumentDate.Text))
                {
                    var p = new Paragraph(HTMLElementType.HTML5);
                    p.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = string.Format("Document creation date:  {0}", fb2File.DocumentInfo.DocumentDate.Text)
                    });
                    info.Add(p);
                }
                if ((fb2File.DocumentInfo.ProgramUsed2Create != null) && !string.IsNullOrEmpty(fb2File.DocumentInfo.ProgramUsed2Create.Text))
                {
                    var p = new Paragraph(HTMLElementType.HTML5);
                    p.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = string.Format("Created using:  {0} software", fb2File.DocumentInfo.ProgramUsed2Create.Text)
                    });
                    info.Add(p);
                }
                if ((fb2File.DocumentInfo.SourceOCR != null) && !string.IsNullOrEmpty(fb2File.DocumentInfo.SourceOCR.Text))
                {
                    var p = new Paragraph(HTMLElementType.HTML5);
                    p.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = string.Format("OCR Source:  {0}", fb2File.DocumentInfo.SourceOCR.Text)
                    });
                    info.Add(p);
                }
                if ((fb2File.DocumentInfo.DocumentAuthors != null) && (fb2File.DocumentInfo.DocumentAuthors.Count > 0))
                {
                    var heading = new H4(HTMLElementType.HTML5);
                    heading.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = "Document authors :"
                    });
                    info.Add(heading);
                    var authors = new UnorderedList(HTMLElementType.HTML5);
                    foreach (var author in fb2File.DocumentInfo.DocumentAuthors)
                    {
                        var li = new ListItem(HTMLElementType.HTML5);
                        li.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                        {
                            Text = DescriptionConverters.GetAuthorAsSting(author)
                        });
                        authors.Add(li);
                    }
                    info.Add(authors);
                }
                if ((fb2File.DocumentInfo.DocumentPublishers != null) && (fb2File.DocumentInfo.DocumentPublishers.Count > 0))
                {
                    var heading = new H4(HTMLElementType.HTML5);
                    heading.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = "Document publishers :"
                    });
                    info.Add(heading);

                    var publishers = new UnorderedList(HTMLElementType.HTML5);
                    foreach (var publisher in fb2File.DocumentInfo.DocumentPublishers)
                    {
                        var li = new ListItem(HTMLElementType.HTML5);
                        li.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                        {
                            Text = DescriptionConverters.GetAuthorAsSting(publisher)
                        });
                        publishers.Add(li);
                    }
                    info.Add(publishers);
                }

                if ((fb2File.DocumentInfo.SourceURLs != null) && (fb2File.DocumentInfo.SourceURLs.Any()))
                {
                    var heading = new H4(HTMLElementType.HTML5);
                    heading.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = "Source URLs :"
                    });
                    info.Add(heading);

                    var urls = new UnorderedList(HTMLElementType.HTML5);
                    foreach (var url in fb2File.DocumentInfo.SourceURLs)
                    {
                        var li = new ListItem(HTMLElementType.HTML5);
                        if (ReferencesUtils.IsExternalLink(url))
                        {
                            var link = new Anchor(HTMLElementType.HTML5);
                            link.HRef.Value = url;
                            link.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                            {
                                Text = url
                            });
                            li.Add(link);
                        }
                        else
                        {
                            li.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                            {
                                Text = url
                            });
                        }
                        urls.Add(li);
                    }
                    info.Add(urls);
                }

                if (fb2File.DocumentInfo.History != null)
                {
                    var heading = new H4(HTMLElementType.HTML5);
                    heading.Add(new SimpleHTML5Text(HTMLElementType.HTML5)
                    {
                        Text = "Document history:"
                    });
                    info.Add(heading);
                    var annotationConverter = new AnnotationConverterV3();
                    info.Add(annotationConverter.Convert(fb2File.DocumentInfo.History, new AnnotationConverterParamsV3 {
                        Level = 1, Settings = settings
                    }));
                    //Paragraph p = new Paragraph();
                    //p.Add(new SimpleHTML5Text() { Text = fb2File.DocumentInfo.History.ToString() });
                    //info.Add(p);
                }
            }

            // in case there is no elements - no need for a header
            if (info.SubElements().Count <= 1)
            {
                info.Remove(header);
            }

            SetClassType(info, ElementStylesV3.FB2Info);
            return(info);
        }
Exemple #15
0
 public override string ToString()
 {
     return(string.Format("{{{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}}}", H1.ToString("f" + 0), H2.ToString("f" + 9), H3.ToString("f" + 9), H4.ToString("f" + 9), H5.ToString("f" + 9), H6.ToString("f" + 9), H7.ToString("f" + 9), H8.ToString("f" + 9), H9.ToString("f" + 9), H10.ToString("f" + 9)));
 }
Exemple #16
0
    // Update is called once per frame
    void FixedUpdate()
    {
        posicion = gameObject.GetComponent <Transform>().position;
        radio2   = gameObject.GetComponent <Colision_pared>().Radio;

        w1  = H1.GetComponent <T1>().w;
        mw1 = w1.magnitude;

        w2  = H2.GetComponent <T2>().w;
        mw2 = w2.magnitude;

        w3  = H3.GetComponent <T3>().w;
        mw3 = w3.magnitude;

        w4  = H4.GetComponent <T4>().w;
        mw4 = w4.magnitude;

        if (encendido == 0)
        {
            FN.y = masa * g;
            FD.y = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));

            FT       = FN - FD;
            ac       = FT / masa;
            v.x      = 0;
            v.z      = 0;
            posicion = gameObject.GetComponent <Transform>().position;
            if ((posicion.y - (radio2 - 5)) <= 0 && (v.y <= 0))
            {
                v.y = -0.3f * v.y;
            }
            else
            {
                v = v + ac * tiempo;
            }
            posicion = posicion + v * tiempo;
            gameObject.GetComponent <Transform>().position = posicion;
        }
        else
        {
            if (q)
            {
                mw1      = mw2 = mw3 = mw4;
                b        = 0.3f;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y     = masa * g;
                FD.y     = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT       = torque + FN + FD;
                ac       = FT / masa;
                ac.z     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }

            if (e)
            {
                b        = 0.03f;
                mw1      = mw3 = mw2 + 1;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y = masa * g;
                FD.y = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT   = torque + FN + FD;
                ac   = FT / masa;

                ac.z     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }

            if (a)
            {
                b        = 0.03f;
                mw1      = mw3 + 1;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y     = masa * g;
                FD.y     = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT       = torque + FN + FD;
                ac       = FT / masa;
                ac.y     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }

            if (d)
            {
                b        = 0.03f;
                mw3      = mw1 + 1;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y     = masa * g;
                FD.y     = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT       = torque + FN + FD;
                ac       = FT / masa;
                ac.y     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }

            if (w)
            {
                b        = 0.03f;
                mw4      = mw2 + 1;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y     = masa * g;
                FD.y     = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT       = torque + FN + FD;
                ac       = FT / masa;
                ac.y     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }


            if (s)
            {
                b        = 0.03f;
                mw2      = mw4 + 1;
                torque.x = L * k * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw3, 2));
                torque.z = L * k * (Mathf.Pow(mw2, 2) - Mathf.Pow(mw4, 2));
                torque.y = b * (Mathf.Pow(mw1, 2) - Mathf.Pow(mw2, 2) + Mathf.Pow(mw3, 2) - Mathf.Pow(mw4, 2));

                FN.y     = masa * g;
                FD.y     = 0.5f * (Paire * b * Area * Mathf.Pow(radio, 2));
                FT       = torque + FN + FD;
                ac       = FT / masa;
                ac.y     = 0;
                v        = v + ac * tiempo;
                posicion = posicion + v * tiempo;
            }

            if (reset)
            {
                ac.x     = ac.y = ac.z = 0;
                torque.x = torque.y = torque.z = 0;
                v.x      = v.y = v.z = 0;
                FN.y     = FN.x = FN.z = 0;
                FD.y     = FD.x = FD.z = 0;
                FT.y     = FT.x = FT.z = 0;
            }
        }

        gameObject.GetComponent <Transform>().position = posicion;
    }
Exemple #17
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;
        }
    }