Example #1
0
 // Token: 0x06001D83 RID: 7555 RVA: 0x000C1A30 File Offset: 0x000BFC30
 private void Start()
 {
     this.BLLEFKOLKLP = base.transform;
     this.PBKGBPJHCCE = base.GetComponent <JLMPBLMOICG>();
     this.OJIDBLEKBBO = EMENMKHBPQE.FINJNKFMLMO(base.gameObject.layer);
     this.IOEJHIBQDDE = this.PBKGBPJHCCE.KJGMGPCEJJD;
     this.IJPEMKQPMIF = this.PBKGBPJHCCE.DFKQMMIQDOO;
     Color[] array = new Color[this.IOEJHIBQDDE * this.IJPEMKQPMIF];
     for (int i = 0; i < this.IJPEMKQPMIF; i++)
     {
         float ddlqkfdfmcj = ((float)i - 1f) / (float)this.IJPEMKQPMIF;
         for (int j = 0; j < this.IOEJHIBQDDE; j++)
         {
             float dgkoigolhdm = ((float)j - 1f) / (float)this.IOEJHIBQDDE;
             int   num         = j + i * this.IOEJHIBQDDE;
             array[num] = BIDEQKEELPD.OFQNMQMNIGM(dgkoigolhdm, ddlqkfdfmcj);
         }
     }
     this.OMPCJJNBOCQ = new Texture2D(this.IOEJHIBQDDE, this.IJPEMKQPMIF, TextureFormat.RGB24, false);
     this.OMPCJJNBOCQ.SetPixels(array);
     this.OMPCJJNBOCQ.filterMode = FilterMode.Trilinear;
     this.OMPCJJNBOCQ.wrapMode   = TextureWrapMode.Clamp;
     this.OMPCJJNBOCQ.Apply();
     this.PBKGBPJHCCE.GOIHJQNMMJD = this.OMPCJJNBOCQ;
     this.PGDHENNHBDG(this.BGBMIEJJQKC);
 }
Example #2
0
    // Token: 0x06000E35 RID: 3637 RVA: 0x000730B8 File Offset: 0x000712B8
    protected static Vector3 GHQBQPOHMPL(GameObject CGHIENBIHCO)
    {
        ENFMCDNLEQQ component   = CGHIENBIHCO.GetComponent <ENFMCDNLEQQ>();
        EMENMKHBPQE emenmkhbpqe = EMENMKHBPQE.FINJNKFMLMO(CGHIENBIHCO.layer);

        if (emenmkhbpqe != null)
        {
            Vector3 vector = CGHIENBIHCO.transform.position;
            if (component != null)
            {
                Vector3[] pmcnqichcle = component.PMCNQICHCLE;
                vector = (pmcnqichcle[0] + pmcnqichcle[1]) * 1457f;
            }
            vector   = emenmkhbpqe.EQOOPGKHOFB.WorldToScreenPoint(vector);
            vector.z = 512f;
            return(vector);
        }
        if (component != null)
        {
            Vector3[] pmcnqichcle2 = component.PMCNQICHCLE;
            return((pmcnqichcle2[1] + pmcnqichcle2[8]) * 70f);
        }
        return(CGHIENBIHCO.transform.position);
    }