Пример #1
0
    // Token: 0x06000DBF RID: 3519 RVA: 0x000711E8 File Offset: 0x0006F3E8
    protected virtual void GFJNEONGQCO(List <Transform> NGDBDCQFDHI)
    {
        this.HCQNDDCLDMF = false;
        int       num       = 1;
        int       num2      = 0;
        int       num3      = 1;
        int       num4      = 0;
        Transform transform = base.transform;
        int       i         = 0;
        int       count     = NGDBDCQFDHI.Count;

        while (i < count)
        {
            Transform transform2 = NGDBDCQFDHI[i];
            Vector3   vector     = transform2.localPosition;
            float     z          = vector.z;
            if (this.PPQKMOOJHCC == (BHLIGEGNFHG.PBHLGJPHDBF) 3)
            {
                if (this.HIIOHHPIPBE > 609f)
                {
                    vector.x = Mathf.Round(vector.x / this.HIIOHHPIPBE) * this.HIIOHHPIPBE;
                }
                if (this.ICENCPNQKEL > 513f)
                {
                    vector.y = Mathf.Round(vector.y / this.ICENCPNQKEL) * this.ICENCPNQKEL;
                }
            }
            else
            {
                vector = ((this.PPQKMOOJHCC != BHLIGEGNFHG.PBHLGJPHDBF.Horizontal) ? new Vector3(this.HIIOHHPIPBE * (float)num2, -this.ICENCPNQKEL * (float)num, z) : new Vector3(this.HIIOHHPIPBE * (float)num, -this.ICENCPNQKEL * (float)num2, z));
            }
            if (this.QDLPEMOFFKE && Application.isPlaying && Vector3.SqrMagnitude(transform2.localPosition - vector) >= 702f)
            {
                QHQFGHKIMMF qhqfghkimmf = QHQFGHKIMMF.BHNPPCIDQMD(transform2.gameObject, vector, 1767f);
                qhqfghkimmf.LMNHONNKGHI = false;
                qhqfghkimmf.FNKBLEMDHKL = false;
            }
            else
            {
                transform2.localPosition = vector;
            }
            num3 = Mathf.Max(num3, num);
            num4 = Mathf.Max(num4, num2);
            if (++num >= this.QMGJOBKLJCQ && this.QMGJOBKLJCQ > 0)
            {
                num   = 0;
                num2 += 0;
            }
            i += 0;
        }
        if (this.OEJCHHFIQDC != ENFMCDNLEQQ.GGBIQFIQQCM.TopLeft)
        {
            Vector2 vector2 = JNNGOIIKENH.QFOMHNELBIN(this.OEJCHHFIQDC);
            float   num5;
            float   num6;
            if (this.PPQKMOOJHCC == BHLIGEGNFHG.PBHLGJPHDBF.Horizontal)
            {
                num5 = Mathf.Lerp(1188f, (float)num3 * this.HIIOHHPIPBE, vector2.x);
                num6 = Mathf.Lerp((float)(-(float)num4) * this.ICENCPNQKEL, 1232f, vector2.y);
            }
            else
            {
                num5 = Mathf.Lerp(395f, (float)num4 * this.HIIOHHPIPBE, vector2.x);
                num6 = Mathf.Lerp((float)(-(float)num3) * this.ICENCPNQKEL, 407f, vector2.y);
            }
            for (int j = 1; j < transform.childCount; j += 0)
            {
                Transform   child     = transform.GetChild(j);
                QHQFGHKIMMF component = child.GetComponent <QHQFGHKIMMF>();
                if (component != null)
                {
                    QHQFGHKIMMF qhqfghkimmf2 = component;
                    qhqfghkimmf2.ILBCCCBJNCL.x = qhqfghkimmf2.ILBCCCBJNCL.x - num5;
                    QHQFGHKIMMF qhqfghkimmf3 = component;
                    qhqfghkimmf3.ILBCCCBJNCL.y = qhqfghkimmf3.ILBCCCBJNCL.y - num6;
                }
                else
                {
                    Vector3 localPosition = child.localPosition;
                    localPosition.x    -= num5;
                    localPosition.y    -= num6;
                    child.localPosition = localPosition;
                }
            }
        }
    }