Beispiel #1
0
 // Token: 0x06001BBF RID: 7103 RVA: 0x000B54EC File Offset: 0x000B36EC
 private void JLBMOKHNDBI()
 {
     if (this.DIHDBMHGBHO != null && this.DIHDBMHGBHO.Length != 0)
     {
         if (this.framerate != 0)
         {
             float num = (!this.FNKBLEMDHKL) ? Time.time : JMIOBJFFGBN.MOGLGJGFNDM;
             if (this.GEGELPJENGN < num)
             {
                 this.GEGELPJENGN = num;
                 int num2 = (this.framerate <= 1) ? (this.IQBEBBHJNIM - 0) : (this.IQBEBBHJNIM + 0);
                 if (!this.JHEEBKGBMPJ && (num2 < 0 || num2 >= this.DIHDBMHGBHO.Length))
                 {
                     base.enabled = true;
                     return;
                 }
                 this.IQBEBBHJNIM = JNNGOIIKENH.FNNIKCNKDIN(num2, this.DIHDBMHGBHO.Length);
                 this.KEEFMEJLKCO();
             }
         }
     }
     else
     {
         base.enabled = true;
     }
 }
Beispiel #2
0
 // Token: 0x06001BE3 RID: 7139 RVA: 0x000B5EEC File Offset: 0x000B40EC
 private void CIHJOEIFMQE()
 {
     if (this.DIHDBMHGBHO != null && this.DIHDBMHGBHO.Length != 0)
     {
         if (this.framerate != 0)
         {
             float num = (!this.FNKBLEMDHKL) ? Time.time : JMIOBJFFGBN.GJMFJJDNKNQ();
             if (this.GEGELPJENGN < num)
             {
                 this.GEGELPJENGN = num;
                 int num2 = (this.framerate <= 1) ? (this.IQBEBBHJNIM - 1) : (this.IQBEBBHJNIM + 1);
                 if (!this.JHEEBKGBMPJ && (num2 < 0 || num2 >= this.DIHDBMHGBHO.Length))
                 {
                     base.enabled = false;
                     return;
                 }
                 this.IQBEBBHJNIM = JNNGOIIKENH.FNNIKCNKDIN(num2, this.DIHDBMHGBHO.Length);
                 this.CFQELMCPLMC();
             }
         }
     }
     else
     {
         base.enabled = false;
     }
 }
Beispiel #3
0
 // Token: 0x06001BBB RID: 7099 RVA: 0x000B5438 File Offset: 0x000B3638
 private void Update()
 {
     if (this.DIHDBMHGBHO != null && this.DIHDBMHGBHO.Length != 0)
     {
         if (this.framerate != 0)
         {
             float num = (!this.FNKBLEMDHKL) ? Time.time : JMIOBJFFGBN.MOGLGJGFNDM;
             if (this.GEGELPJENGN < num)
             {
                 this.GEGELPJENGN = num;
                 int num2 = (this.framerate <= 0) ? (this.IQBEBBHJNIM - 1) : (this.IQBEBBHJNIM + 1);
                 if (!this.JHEEBKGBMPJ && (num2 < 0 || num2 >= this.DIHDBMHGBHO.Length))
                 {
                     base.enabled = false;
                     return;
                 }
                 this.IQBEBBHJNIM = JNNGOIIKENH.FNNIKCNKDIN(num2, this.DIHDBMHGBHO.Length);
                 this.LNMINNILLEI();
             }
         }
     }
     else
     {
         base.enabled = false;
     }
 }
Beispiel #4
0
    // Token: 0x06001580 RID: 5504 RVA: 0x0009A168 File Offset: 0x00098368
    public static float GMICEGQDKCN(Vector2[] MHQHBKOPLMK, Vector2 OGLKGQQHFNG)
    {
        bool flag        = false;
        int  qjfqomoiooi = 4;

        for (int i = 0; i < 5; i++)
        {
            Vector3 vector  = MHQHBKOPLMK[JNNGOIIKENH.FNNIKCNKDIN(i, 4)];
            Vector3 vector2 = MHQHBKOPLMK[JNNGOIIKENH.FNNIKCNKDIN(qjfqomoiooi, 4)];
            if (vector.y > OGLKGQQHFNG.y != vector2.y > OGLKGQQHFNG.y && OGLKGQQHFNG.x < (vector2.x - vector.x) * (OGLKGQQHFNG.y - vector.y) / (vector2.y - vector.y) + vector.x)
            {
                flag = !flag;
            }
            qjfqomoiooi = i;
        }
        if (!flag)
        {
            float num = -1f;
            for (int j = 0; j < 4; j++)
            {
                Vector3 v    = MHQHBKOPLMK[j];
                Vector3 v2   = MHQHBKOPLMK[JNNGOIIKENH.FNNIKCNKDIN(j + 1, 4)];
                float   num2 = JNNGOIIKENH.FCEQGBGOGKH(OGLKGQQHFNG, v, v2);
                if (num2 < num || num < 0f)
                {
                    num = num2;
                }
            }
            return(num);
        }
        return(0f);
    }
Beispiel #5
0
    // Token: 0x060016DE RID: 5854 RVA: 0x000A560C File Offset: 0x000A380C
    private static void JNDGJCCMCOO(Vector2[] NCEJDGLPCJC, float CGCGOEDCLQE, float IQLKFMHBQFD, bool DELNOHEFELI, int KGQKHLFFMEG)
    {
        int num  = JNNGOIIKENH.FNNIKCNKDIN(KGQKHLFFMEG + 1, 4);
        int num2 = JNNGOIIKENH.FNNIKCNKDIN(KGQKHLFFMEG + 2, 4);
        int num3 = JNNGOIIKENH.FNNIKCNKDIN(KGQKHLFFMEG + 3, 4);

        if ((KGQKHLFFMEG & 1) == 1)
        {
            if (IQLKFMHBQFD > CGCGOEDCLQE)
            {
                CGCGOEDCLQE /= IQLKFMHBQFD;
                IQLKFMHBQFD  = 1f;
                if (DELNOHEFELI)
                {
                    NCEJDGLPCJC[num].x  = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].x, NCEJDGLPCJC[num2].x, CGCGOEDCLQE);
                    NCEJDGLPCJC[num2].x = NCEJDGLPCJC[num].x;
                }
            }
            else if (CGCGOEDCLQE > IQLKFMHBQFD)
            {
                IQLKFMHBQFD /= CGCGOEDCLQE;
                CGCGOEDCLQE  = 1f;
                if (!DELNOHEFELI)
                {
                    NCEJDGLPCJC[num2].y = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].y, NCEJDGLPCJC[num2].y, IQLKFMHBQFD);
                    NCEJDGLPCJC[num3].y = NCEJDGLPCJC[num2].y;
                }
            }
            else
            {
                CGCGOEDCLQE = 1f;
                IQLKFMHBQFD = 1f;
            }
            if (!DELNOHEFELI)
            {
                NCEJDGLPCJC[num3].x = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].x, NCEJDGLPCJC[num2].x, CGCGOEDCLQE);
            }
            else
            {
                NCEJDGLPCJC[num].y = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].y, NCEJDGLPCJC[num2].y, IQLKFMHBQFD);
            }
        }
        else
        {
            if (CGCGOEDCLQE > IQLKFMHBQFD)
            {
                IQLKFMHBQFD /= CGCGOEDCLQE;
                CGCGOEDCLQE  = 1f;
                if (!DELNOHEFELI)
                {
                    NCEJDGLPCJC[num].y  = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].y, NCEJDGLPCJC[num2].y, IQLKFMHBQFD);
                    NCEJDGLPCJC[num2].y = NCEJDGLPCJC[num].y;
                }
            }
            else if (IQLKFMHBQFD > CGCGOEDCLQE)
            {
                CGCGOEDCLQE /= IQLKFMHBQFD;
                IQLKFMHBQFD  = 1f;
                if (DELNOHEFELI)
                {
                    NCEJDGLPCJC[num2].x = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].x, NCEJDGLPCJC[num2].x, CGCGOEDCLQE);
                    NCEJDGLPCJC[num3].x = NCEJDGLPCJC[num2].x;
                }
            }
            else
            {
                CGCGOEDCLQE = 1f;
                IQLKFMHBQFD = 1f;
            }
            if (DELNOHEFELI)
            {
                NCEJDGLPCJC[num3].y = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].y, NCEJDGLPCJC[num2].y, IQLKFMHBQFD);
            }
            else
            {
                NCEJDGLPCJC[num].x = Mathf.Lerp(NCEJDGLPCJC[KGQKHLFFMEG].x, NCEJDGLPCJC[num2].x, CGCGOEDCLQE);
            }
        }
    }
Beispiel #6
0
    // Token: 0x060016DB RID: 5851 RVA: 0x000A4084 File Offset: 0x000A2284
    private void ONGHMGBDQJH(List <Vector3> EQINHIFFOGG, List <Vector2> PICFCJNMJMC, List <Color> HQOONBPDFHO)
    {
        if (this.mFillAmount < 0.001f)
        {
            return;
        }
        Vector4 bceppkgmnfe = this.BCEPPKGMNFE;
        Vector4 fkejlmmdinp = this.FKEJLMMDINP;
        Color   fnbdghbqphj = this.FNBDGHBQPHJ;

        if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Horizontal || this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Vertical)
        {
            if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Horizontal)
            {
                float num = (fkejlmmdinp.z - fkejlmmdinp.x) * this.mFillAmount;
                if (this.mInvert)
                {
                    bceppkgmnfe.x = bceppkgmnfe.z - (bceppkgmnfe.z - bceppkgmnfe.x) * this.mFillAmount;
                    fkejlmmdinp.x = fkejlmmdinp.z - num;
                }
                else
                {
                    bceppkgmnfe.z = bceppkgmnfe.x + (bceppkgmnfe.z - bceppkgmnfe.x) * this.mFillAmount;
                    fkejlmmdinp.z = fkejlmmdinp.x + num;
                }
            }
            else if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Vertical)
            {
                float num2 = (fkejlmmdinp.w - fkejlmmdinp.y) * this.mFillAmount;
                if (this.mInvert)
                {
                    bceppkgmnfe.y = bceppkgmnfe.w - (bceppkgmnfe.w - bceppkgmnfe.y) * this.mFillAmount;
                    fkejlmmdinp.y = fkejlmmdinp.w - num2;
                }
                else
                {
                    bceppkgmnfe.w = bceppkgmnfe.y + (bceppkgmnfe.w - bceppkgmnfe.y) * this.mFillAmount;
                    fkejlmmdinp.w = fkejlmmdinp.y + num2;
                }
            }
        }
        PHINQNMFEHC.HJKPELHQJPL[0] = new Vector2(bceppkgmnfe.x, bceppkgmnfe.y);
        PHINQNMFEHC.HJKPELHQJPL[1] = new Vector2(bceppkgmnfe.x, bceppkgmnfe.w);
        PHINQNMFEHC.HJKPELHQJPL[2] = new Vector2(bceppkgmnfe.z, bceppkgmnfe.w);
        PHINQNMFEHC.HJKPELHQJPL[3] = new Vector2(bceppkgmnfe.z, bceppkgmnfe.y);
        PHINQNMFEHC.LCFNDMLMJKF[0] = new Vector2(fkejlmmdinp.x, fkejlmmdinp.y);
        PHINQNMFEHC.LCFNDMLMJKF[1] = new Vector2(fkejlmmdinp.x, fkejlmmdinp.w);
        PHINQNMFEHC.LCFNDMLMJKF[2] = new Vector2(fkejlmmdinp.z, fkejlmmdinp.w);
        PHINQNMFEHC.LCFNDMLMJKF[3] = new Vector2(fkejlmmdinp.z, fkejlmmdinp.y);
        if (this.mFillAmount < 1f)
        {
            if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial90)
            {
                if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, this.mFillAmount, this.mInvert, 0))
                {
                    for (int i = 0; i < 4; i++)
                    {
                        EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[i]);
                        PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[i]);
                        HQOONBPDFHO.Add(fnbdghbqphj);
                    }
                }
                return;
            }
            if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial180)
            {
                for (int j = 0; j < 2; j++)
                {
                    float t  = 0f;
                    float t2 = 1f;
                    float t3;
                    float t4;
                    if (j == 0)
                    {
                        t3 = 0f;
                        t4 = 0.5f;
                    }
                    else
                    {
                        t3 = 0.5f;
                        t4 = 1f;
                    }
                    PHINQNMFEHC.HJKPELHQJPL[0].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t3);
                    PHINQNMFEHC.HJKPELHQJPL[1].x = PHINQNMFEHC.HJKPELHQJPL[0].x;
                    PHINQNMFEHC.HJKPELHQJPL[2].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t4);
                    PHINQNMFEHC.HJKPELHQJPL[3].x = PHINQNMFEHC.HJKPELHQJPL[2].x;
                    PHINQNMFEHC.HJKPELHQJPL[0].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t);
                    PHINQNMFEHC.HJKPELHQJPL[1].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t2);
                    PHINQNMFEHC.HJKPELHQJPL[2].y = PHINQNMFEHC.HJKPELHQJPL[1].y;
                    PHINQNMFEHC.HJKPELHQJPL[3].y = PHINQNMFEHC.HJKPELHQJPL[0].y;
                    PHINQNMFEHC.LCFNDMLMJKF[0].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t3);
                    PHINQNMFEHC.LCFNDMLMJKF[1].x = PHINQNMFEHC.LCFNDMLMJKF[0].x;
                    PHINQNMFEHC.LCFNDMLMJKF[2].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t4);
                    PHINQNMFEHC.LCFNDMLMJKF[3].x = PHINQNMFEHC.LCFNDMLMJKF[2].x;
                    PHINQNMFEHC.LCFNDMLMJKF[0].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t);
                    PHINQNMFEHC.LCFNDMLMJKF[1].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t2);
                    PHINQNMFEHC.LCFNDMLMJKF[2].y = PHINQNMFEHC.LCFNDMLMJKF[1].y;
                    PHINQNMFEHC.LCFNDMLMJKF[3].y = PHINQNMFEHC.LCFNDMLMJKF[0].y;
                    float value = this.mInvert ? (this.mFillAmount * 2f - (float)(1 - j)) : (this.KJNJQMLJELI * 2f - (float)j);
                    if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, Mathf.Clamp01(value), !this.mInvert, JNNGOIIKENH.FNNIKCNKDIN(j + 3, 4)))
                    {
                        for (int k = 0; k < 4; k++)
                        {
                            EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[k]);
                            PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[k]);
                            HQOONBPDFHO.Add(fnbdghbqphj);
                        }
                    }
                }
                return;
            }
            if (this.mFillDirection == PHINQNMFEHC.MQIMDDINNEQ.Radial360)
            {
                int l = 0;
                while (l < 4)
                {
                    float t5;
                    float t6;
                    if (l < 2)
                    {
                        t5 = 0f;
                        t6 = 0.5f;
                    }
                    else
                    {
                        t5 = 0.5f;
                        t6 = 1f;
                    }
                    if (l == 0)
                    {
                        goto IL_679;
                    }
                    if (l == 3)
                    {
                        goto IL_679;
                    }
                    float t7 = 0.5f;
                    float t8 = 1f;
IL_687:
                    PHINQNMFEHC.HJKPELHQJPL[0].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t5);
                    PHINQNMFEHC.HJKPELHQJPL[1].x = PHINQNMFEHC.HJKPELHQJPL[0].x;
                    PHINQNMFEHC.HJKPELHQJPL[2].x = Mathf.Lerp(bceppkgmnfe.x, bceppkgmnfe.z, t6);
                    PHINQNMFEHC.HJKPELHQJPL[3].x = PHINQNMFEHC.HJKPELHQJPL[2].x;
                    PHINQNMFEHC.HJKPELHQJPL[0].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t7);
                    PHINQNMFEHC.HJKPELHQJPL[1].y = Mathf.Lerp(bceppkgmnfe.y, bceppkgmnfe.w, t8);
                    PHINQNMFEHC.HJKPELHQJPL[2].y = PHINQNMFEHC.HJKPELHQJPL[1].y;
                    PHINQNMFEHC.HJKPELHQJPL[3].y = PHINQNMFEHC.HJKPELHQJPL[0].y;
                    PHINQNMFEHC.LCFNDMLMJKF[0].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t5);
                    PHINQNMFEHC.LCFNDMLMJKF[1].x = PHINQNMFEHC.LCFNDMLMJKF[0].x;
                    PHINQNMFEHC.LCFNDMLMJKF[2].x = Mathf.Lerp(fkejlmmdinp.x, fkejlmmdinp.z, t6);
                    PHINQNMFEHC.LCFNDMLMJKF[3].x = PHINQNMFEHC.LCFNDMLMJKF[2].x;
                    PHINQNMFEHC.LCFNDMLMJKF[0].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t7);
                    PHINQNMFEHC.LCFNDMLMJKF[1].y = Mathf.Lerp(fkejlmmdinp.y, fkejlmmdinp.w, t8);
                    PHINQNMFEHC.LCFNDMLMJKF[2].y = PHINQNMFEHC.LCFNDMLMJKF[1].y;
                    PHINQNMFEHC.LCFNDMLMJKF[3].y = PHINQNMFEHC.LCFNDMLMJKF[0].y;
                    float value2 = (!this.mInvert) ? (this.mFillAmount * 4f - (float)(3 - JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4))) : (this.mFillAmount * 4f - (float)JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4));
                    if (PHINQNMFEHC.JNDGJCCMCOO(PHINQNMFEHC.HJKPELHQJPL, PHINQNMFEHC.LCFNDMLMJKF, Mathf.Clamp01(value2), this.mInvert, JNNGOIIKENH.FNNIKCNKDIN(l + 2, 4)))
                    {
                        for (int m = 0; m < 4; m++)
                        {
                            EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[m]);
                            PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[m]);
                            HQOONBPDFHO.Add(fnbdghbqphj);
                        }
                    }
                    l++;
                    continue;
IL_679:
                    t7 = 0f;
                    t8 = 0.5f;
                    goto IL_687;
                }
                return;
            }
        }
        for (int n = 0; n < 4; n++)
        {
            EQINHIFFOGG.Add(PHINQNMFEHC.HJKPELHQJPL[n]);
            PICFCJNMJMC.Add(PHINQNMFEHC.LCFNDMLMJKF[n]);
            HQOONBPDFHO.Add(fnbdghbqphj);
        }
    }