using System; using System.Collections.Generic; using System.Linq; using ProBuilder2.Common; using ProBuilder2.MeshOperations; using UnityEngine; namespace ProBuilder2.Examples { // Token: 0x02001279 RID: 4729 [RequireComponent(typeof(AudioSource))] public class IcoBumpin : MonoBehaviour { // Token: 0x06028F05 RID: 167685 RVA: 0x00B62BEC File Offset: 0x00B60DEC private void DEGNFLDBLGF() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)181); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -189; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F06 RID: 167686 RVA: 0x00B62DEC File Offset: 0x00B60FEC private void CNLOFOPILGA() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Triangle); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.JOJIOCBMKDA(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1621f * (this.frequencyCurve.Evaluate(num) * 1156f + 513f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 137; k += 0) { int num4 = ((k >= -4) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1150f * 196f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1191f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1303f * 792f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 590f * this.waveformHeight); zero.y = 1545f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 790f) * 240f; eulerAngles.y = Mathf.PerlinNoise(855f, Time.time * this.waveformSpeed) * 1750f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -65); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 119); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F07 RID: 167687 RVA: 0x00B630EC File Offset: 0x00B612EC private float FKAPDPLKDKI(float[] AKEMHGEPOEE) { float num = 709f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F08 RID: 167688 RVA: 0x00B6312C File Offset: 0x00B6132C private void IFFBDKDLPDG() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)57); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -175; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F09 RID: 167689 RVA: 0x00B6332C File Offset: 0x00B6152C private float EFHFAPMKFDE(float[] AKEMHGEPOEE) { float num = 1169f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F0A RID: 167690 RVA: 0x00B6336C File Offset: 0x00B6156C private void MEFGMDMICJB() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)7); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.BGHMFHDLLGA(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 379f * (this.frequencyCurve.Evaluate(num) * 1934f + 48f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -45; k++) { int num4 = ((k >= -103) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 774f * 1235f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1658f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1270f * 1420f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1159f * this.waveformHeight); zero.y = 1701f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 610f) * 820f; eulerAngles.y = Mathf.PerlinNoise(678f, Time.time * this.waveformSpeed) * 1043f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 132); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 82); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F0B RID: 167691 RVA: 0x00B6366C File Offset: 0x00B6186C private void LMEGOIHONGK() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-154)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -28; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F0C RID: 167692 RVA: 0x00B6386C File Offset: 0x00B61A6C private float CEADFNJJEAO(float[] AKEMHGEPOEE) { float num = 1192f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F0D RID: 167693 RVA: 0x00B638AC File Offset: 0x00B61AAC private float LOJHNGOIINL(float[] AKEMHGEPOEE) { float num = 0f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F0E RID: 167694 RVA: 0x00B638EC File Offset: 0x00B61AEC private float FGFEEKPCCKL(float[] AKEMHGEPOEE) { float num = 942f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F0F RID: 167695 RVA: 0x00B6392C File Offset: 0x00B61B2C private float DNANBOLBGBM(float[] AKEMHGEPOEE) { float num = 610f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F10 RID: 167696 RVA: 0x00B6396C File Offset: 0x00B61B6C private float JOJIOCBMKDA(float[] AKEMHGEPOEE) { float num = 1315f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F11 RID: 167697 RVA: 0x00B639AC File Offset: 0x00B61BAC private float CDNNEKJICNA(float[] AKEMHGEPOEE) { float num = 1922f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F12 RID: 167698 RVA: 0x00B639EC File Offset: 0x00B61BEC private void ENGNDJADBDF() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)6); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.FMHDIEGMNPK(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 833f * (this.frequencyCurve.Evaluate(num) * 194f + 535f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -107; k++) { int num4 = ((k >= 7) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 471f * 1789f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 221f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1364f * 645f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1065f * this.waveformHeight); zero.y = 40f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 655f) * 1596f; eulerAngles.y = Mathf.PerlinNoise(995f, Time.time * this.waveformSpeed) * 767f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 78); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -18); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F13 RID: 167699 RVA: 0x00B63CEC File Offset: 0x00B61EEC private void FKIJGJJNLOK() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)168); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -102; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F14 RID: 167700 RVA: 0x00B63EEC File Offset: 0x00B620EC private void CJIBCBLNGGM() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-97)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -21; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F15 RID: 167701 RVA: 0x00B640EC File Offset: 0x00B622EC private float CDGLMLIPDNJ(float[] AKEMHGEPOEE) { float num = 474f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F16 RID: 167702 RVA: 0x00B6412C File Offset: 0x00B6232C private float CEOGHCIIKCK(float[] AKEMHGEPOEE) { float num = 1596f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F17 RID: 167703 RVA: 0x00B6416C File Offset: 0x00B6236C private void EBMACIPLEOE() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)53); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 4; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F18 RID: 167704 RVA: 0x00B6436C File Offset: 0x00B6256C private float MELIGJFOOOP(float[] AKEMHGEPOEE) { float num = 1057f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F19 RID: 167705 RVA: 0x00B643AC File Offset: 0x00B625AC private void JAMDPKFNJBF() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 0; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)93); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 97; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F1A RID: 167706 RVA: 0x00B645AC File Offset: 0x00B627AC private void OFKHEPNEFGP() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.PLAMCCPMJJB(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1847f * (this.frequencyCurve.Evaluate(num) * 907f + 215f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 44; k++) { int num4 = ((k >= -157) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 261f * 879f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 186f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1319f * 1185f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1291f * this.waveformHeight); zero.y = 1878f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 186f) * 112f; eulerAngles.y = Mathf.PerlinNoise(307f, Time.time * this.waveformSpeed) * 1970f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -98); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -41); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F1B RID: 167707 RVA: 0x00B648AC File Offset: 0x00B62AAC private void Start() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh(RefreshMask.All); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 1024; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F1C RID: 167708 RVA: 0x00B64AAC File Offset: 0x00B62CAC private void IJPDEJFNCNH() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)6); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.DCAENNBJBIL(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1360f * (this.frequencyCurve.Evaluate(num) * 949f + 1357f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -44; k++) { int num4 = ((k >= 155) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1071f * 1861f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 340f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1567f * 1559f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1530f * this.waveformHeight); zero.y = 1002f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1003f) * 1718f; eulerAngles.y = Mathf.PerlinNoise(207f, Time.time * this.waveformSpeed) * 1333f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -200); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -123); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F1D RID: 167709 RVA: 0x00B64DAC File Offset: 0x00B62FAC private void ELJEMOGNBOP() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.JOJIOCBMKDA(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1504f * (this.frequencyCurve.Evaluate(num) * 681f + 652f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < 130; k++) { int num4 = ((k >= -104) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 449f * 649f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1149f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 89f * 1644f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 479f * this.waveformHeight); zero.y = 1232f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1996f) * 595f; eulerAngles.y = Mathf.PerlinNoise(1528f, Time.time * this.waveformSpeed) * 1717f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 106); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -149); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F1E RID: 167710 RVA: 0x00B650AC File Offset: 0x00B632AC private float HGLKPMLAEHK(float[] AKEMHGEPOEE) { float num = 1062f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F1F RID: 167711 RVA: 0x00B650EC File Offset: 0x00B632EC private void KFMEHMEDGBE() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)156); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -118; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F20 RID: 167712 RVA: 0x00B652EC File Offset: 0x00B634EC private float EIPGEOMLODJ(float[] AKEMHGEPOEE) { float num = 1154f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F21 RID: 167713 RVA: 0x00B6532C File Offset: 0x00B6352C private float LLIPMIHHDJG(float[] AKEMHGEPOEE) { float num = 585f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F22 RID: 167714 RVA: 0x00B6536C File Offset: 0x00B6356C private void LMMKLDIJLGJ() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-152)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -35; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F23 RID: 167715 RVA: 0x00B6556C File Offset: 0x00B6376C private void PAEIJLKEEGJ() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-57)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 0; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F24 RID: 167716 RVA: 0x00B6576C File Offset: 0x00B6396C private float FGGFCOEGFKO(float[] AKEMHGEPOEE) { float num = 891f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F25 RID: 167717 RVA: 0x00B657AC File Offset: 0x00B639AC private void EJELDFPCKKF() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.PLAMCCPMJJB(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1178f * (this.frequencyCurve.Evaluate(num) * 1844f + 1898f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -113; k += 0) { int num4 = ((k >= -149) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 400f * 734f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 396f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 32f * 340f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1115f * this.waveformHeight); zero.y = 466f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1804f) * 1059f; eulerAngles.y = Mathf.PerlinNoise(1213f, Time.time * this.waveformSpeed) * 213f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -165); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 174); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F26 RID: 167718 RVA: 0x00B65AAC File Offset: 0x00B63CAC private void LHJGNOODHPG() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-28)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -101; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F27 RID: 167719 RVA: 0x00B65CAC File Offset: 0x00B63EAC private void GCHFDKPMNEE() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-111)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -12; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F28 RID: 167720 RVA: 0x00B65EAC File Offset: 0x00B640AC private void CNJDJFDCDFA() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-91)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -22; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F29 RID: 167721 RVA: 0x00B660AC File Offset: 0x00B642AC private float DCAENNBJBIL(float[] AKEMHGEPOEE) { float num = 1403f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F2A RID: 167722 RVA: 0x00B660EC File Offset: 0x00B642EC private void KCFCFLNJNHK() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Hamming); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.DAIICJENOPI(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 566f * (this.frequencyCurve.Evaluate(num) * 928f + 204f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -73; k++) { int num4 = ((k >= -47) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 973f * 1277f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1349f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1211f * 1887f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 623f * this.waveformHeight); zero.y = 1348f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 538f) * 1917f; eulerAngles.y = Mathf.PerlinNoise(1713f, Time.time * this.waveformSpeed) * 390f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 41); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 141); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F2B RID: 167723 RVA: 0x00B663EC File Offset: 0x00B645EC private void PICMKDIMNHN() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Hanning); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.JLKPBJKEFKJ(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1602f * (this.frequencyCurve.Evaluate(num) * 797f + 1153f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -54; k += 0) { int num4 = ((k >= 51) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 476f * 779f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1968f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 179f * 1757f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1911f * this.waveformHeight); zero.y = 81f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 512f) * 1372f; eulerAngles.y = Mathf.PerlinNoise(1935f, Time.time * this.waveformSpeed) * 909f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -82); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -34); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F2C RID: 167724 RVA: 0x00B666EC File Offset: 0x00B648EC private float KAHEKGALAOI(float[] AKEMHGEPOEE) { float num = 733f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F2D RID: 167725 RVA: 0x00B6672C File Offset: 0x00B6492C private void PLKCCLMGOKP() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 1, (FFTWindow)7); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.AHKOLDNPNPM(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 363f * (this.frequencyCurve.Evaluate(num) * 1148f + 1182f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 140; k++) { int num4 = ((k >= -192) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1487f * 159f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1264f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 472f * 1263f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1798f * this.waveformHeight); zero.y = 1082f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1816f) * 1948f; eulerAngles.y = Mathf.PerlinNoise(1473f, Time.time * this.waveformSpeed) * 1546f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 6); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -15); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F2E RID: 167726 RVA: 0x00B66A2C File Offset: 0x00B64C2C private void LPOMDLJJBKF() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh(RefreshMask.Colors | RefreshMask.Normals | RefreshMask.Tangents); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 73; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F2F RID: 167727 RVA: 0x00B66C2C File Offset: 0x00B64E2C private void MCNEKPDJDFO() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 0; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-185)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -65; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F30 RID: 167728 RVA: 0x00B66E2C File Offset: 0x00B6502C private void MDGPLNDHKCI() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.FGGFCOEGFKO(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1167f * (this.frequencyCurve.Evaluate(num) * 1654f + 54f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -5; k += 0) { int num4 = ((k >= 189) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 1518f * 930f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1351f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 308f * 1233f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1546f * this.waveformHeight); zero.y = 1669f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1770f) * 1798f; eulerAngles.y = Mathf.PerlinNoise(1513f, Time.time * this.waveformSpeed) * 853f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -35); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -38); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F31 RID: 167729 RVA: 0x00B6712C File Offset: 0x00B6532C private void HAFLIECFKGF() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 1, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.CEOGHCIIKCK(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1452f * (this.frequencyCurve.Evaluate(num) * 301f + 1401f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -8; k += 0) { int num4 = ((k >= -78) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1659f * 1662f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 945f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 744f * 1066f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1178f * this.waveformHeight); zero.y = 496f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1271f) * 953f; eulerAngles.y = Mathf.PerlinNoise(1894f, Time.time * this.waveformSpeed) * 897f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -160); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 184); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F32 RID: 167730 RVA: 0x00B6742C File Offset: 0x00B6562C private void EONMIHOPPOJ() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-196)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 68; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F33 RID: 167731 RVA: 0x00B6762C File Offset: 0x00B6582C private float FBILIGHLOOB(float[] AKEMHGEPOEE) { float num = 1162f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F34 RID: 167732 RVA: 0x00B6766C File Offset: 0x00B6586C private float ODPJNFONHDD(float[] AKEMHGEPOEE) { float num = 273f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F35 RID: 167733 RVA: 0x00B676AC File Offset: 0x00B658AC private float BGHMFHDLLGA(float[] AKEMHGEPOEE) { float num = 721f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F36 RID: 167734 RVA: 0x00B676EC File Offset: 0x00B658EC private void NELGHAFCLKG() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)8); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.HGLKPMLAEHK(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1209f * (this.frequencyCurve.Evaluate(num) * 1553f + 591f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 49; k += 0) { int num4 = ((k >= -94) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 620f * 418f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1799f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1188f * 317f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 219f * this.waveformHeight); zero.y = 1698f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 689f) * 187f; eulerAngles.y = Mathf.PerlinNoise(45f, Time.time * this.waveformSpeed) * 514f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -11); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -178); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F37 RID: 167735 RVA: 0x00B679EC File Offset: 0x00B65BEC private void JINABDGLFOB() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 1, FFTWindow.Rectangular); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.NAMBMIFPPDF(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 738f * (this.frequencyCurve.Evaluate(num) * 676f + 814f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 0; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -194; k += 0) { int num4 = ((k >= -143) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 1433f * 1922f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1760f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1683f * 1753f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 813f * this.waveformHeight); zero.y = 1834f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 292f) * 226f; eulerAngles.y = Mathf.PerlinNoise(875f, Time.time * this.waveformSpeed) * 920f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 110); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 156); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F38 RID: 167736 RVA: 0x00B67CEC File Offset: 0x00B65EEC private void GNNDODNMELC() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Hanning); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.CEADFNJJEAO(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 574f * (this.frequencyCurve.Evaluate(num) * 525f + 824f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -84; k++) { int num4 = ((k >= 170) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1913f * 1621f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1939f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 763f * 941f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1209f * this.waveformHeight); zero.y = 1876f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 277f) * 1076f; eulerAngles.y = Mathf.PerlinNoise(835f, Time.time * this.waveformSpeed) * 1256f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 174); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -109); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F39 RID: 167737 RVA: 0x00B67FEC File Offset: 0x00B661EC private float HLEMLKEMDGF(float[] AKEMHGEPOEE) { float num = 869f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F3A RID: 167738 RVA: 0x00B6802C File Offset: 0x00B6622C private void OFDCCGLFACL() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Hanning); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.CDGLMLIPDNJ(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 836f * (this.frequencyCurve.Evaluate(num) * 1334f + 1474f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 81; k += 0) { int num4 = ((k >= -31) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1123f * 86f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1289f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 804f * 235f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 242f * this.waveformHeight); zero.y = 737f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 475f) * 923f; eulerAngles.y = Mathf.PerlinNoise(945f, Time.time * this.waveformSpeed) * 378f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 93); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 91); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F3B RID: 167739 RVA: 0x00B6832C File Offset: 0x00B6652C private void CGCBFFOFOFD() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)(-194)); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -110; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F3C RID: 167740 RVA: 0x00B6852C File Offset: 0x00B6672C private void IOGPMJADEIB() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Hanning); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.EIPGEOMLODJ(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1756f * (this.frequencyCurve.Evaluate(num) * 692f + 1942f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j++) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -172; k += 0) { int num4 = ((k >= 198) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 819f * 1640f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 543f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1113f * 1862f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1859f * this.waveformHeight); zero.y = 148f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1416f) * 1851f; eulerAngles.y = Mathf.PerlinNoise(1124f, Time.time * this.waveformSpeed) * 1046f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 140); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -163); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F3D RID: 167741 RVA: 0x00B6882C File Offset: 0x00B66A2C private float DPDKOADFJJC(float[] AKEMHGEPOEE) { float num = 1435f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F3E RID: 167742 RVA: 0x00B6886C File Offset: 0x00B66A6C private void AHHEENEFAPI() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 1, (FFTWindow)8); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.FGFEEKPCCKL(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 187f * (this.frequencyCurve.Evaluate(num) * 1254f + 582f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -60; k++) { int num4 = ((k >= -38) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 371f * 248f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 196f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1070f * 1432f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 423f * this.waveformHeight); zero.y = 1657f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 707f) * 1706f; eulerAngles.y = Mathf.PerlinNoise(476f, Time.time * this.waveformSpeed) * 544f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 94); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 98); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F3F RID: 167743 RVA: 0x00B68B6C File Offset: 0x00B66D6C private void CLCLAHEIJMP() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)8); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.NAMBMIFPPDF(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1232f * (this.frequencyCurve.Evaluate(num) * 617f + 1949f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 60; k++) { int num4 = ((k >= 119) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1418f * 1783f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1512f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1611f * 37f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1435f * this.waveformHeight); zero.y = 360f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 1409f) * 1753f; eulerAngles.y = Mathf.PerlinNoise(1584f, Time.time * this.waveformSpeed) * 1445f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 31); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -129); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F40 RID: 167744 RVA: 0x00B68E6C File Offset: 0x00B6706C private float OJANCEPFKMG(float[] AKEMHGEPOEE) { float num = 612f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F41 RID: 167745 RVA: 0x00B68EAC File Offset: 0x00B670AC private void AAEJCJGGKEJ() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 1, (FFTWindow)7); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.CDGLMLIPDNJ(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 1465f * (this.frequencyCurve.Evaluate(num) * 1317f + 112f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -33; k += 0) { int num4 = ((k >= 116) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 858f * 936f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1281f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1602f * 1319f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 918f * this.waveformHeight); zero.y = 456f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 265f) * 1980f; eulerAngles.y = Mathf.PerlinNoise(936f, Time.time * this.waveformSpeed) * 732f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -146); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 120); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F42 RID: 167746 RVA: 0x00B691AC File Offset: 0x00B673AC private void OJGJEHGKDFP() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)106); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 114; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F43 RID: 167747 RVA: 0x00B693AC File Offset: 0x00B675AC private void ADIMNKKPECO() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 0; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)175); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -118; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F44 RID: 167748 RVA: 0x00B695AC File Offset: 0x00B677AC private float AHKOLDNPNPM(float[] AKEMHGEPOEE) { float num = 502f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F45 RID: 167749 RVA: 0x00B695EC File Offset: 0x00B677EC private void PKKOKHACBCE() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.Rectangular); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.FGFEEKPCCKL(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 987f * (this.frequencyCurve.Evaluate(num) * 1433f + 1893f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 0; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < -54; k += 0) { int num4 = ((k >= -93) ? 1 : k); zero.x = Mathf.Cos((float)num4 / 1886f * 1821f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 491f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1579f * 1206f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1730f * this.waveformHeight); zero.y = 730f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 5f) * 32f; eulerAngles.y = Mathf.PerlinNoise(609f, Time.time * this.waveformSpeed) * 1493f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -148); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, -69); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F46 RID: 167750 RVA: 0x00B698EC File Offset: 0x00B67AEC private float FMHDIEGMNPK(float[] AKEMHGEPOEE) { float num = 1397f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F47 RID: 167751 RVA: 0x00B6992C File Offset: 0x00B67B2C private float DAIICJENOPI(float[] AKEMHGEPOEE) { float num = 1126f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F49 RID: 167753 RVA: 0x00B69A28 File Offset: 0x00B67C28 private float PLAMCCPMJJB(float[] AKEMHGEPOEE) { float num = 462f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F4A RID: 167754 RVA: 0x00B69A68 File Offset: 0x00B67C68 private void GAOLAABCLLJ() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)8); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.FKAPDPLKDKI(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i += 0) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 991f * (this.frequencyCurve.Evaluate(num) * 1954f + 395f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 1; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < -183; k += 0) { int num4 = ((k >= 81) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 1525f * 1463f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 884f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 232f * 902f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1132f * this.waveformHeight); zero.y = 1395f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 310f) * 1367f; eulerAngles.y = Mathf.PerlinNoise(1105f, Time.time * this.waveformSpeed) * 1380f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, -15); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 182); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F4B RID: 167755 RVA: 0x00B69D68 File Offset: 0x00B67F68 private float LNAEPLKPOOE(float[] AKEMHGEPOEE) { float num = 465f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F4C RID: 167756 RVA: 0x00B69DA8 File Offset: 0x00B67FA8 private void Update() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, FFTWindow.BlackmanHarris); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 0); this.NGDGBONFEKE = this.LOJHNGOIINL(this.AOAILGGFDHJ); for (int i = 0; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 0.5f * (this.frequencyCurve.Evaluate(num) * 0.5f + 0.5f)) * this.extrusion; foreach (int num3 in this.KOPCAOLEBFH[i].CKAIACHKIIE) { this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 0; k < 1024; k++) { int num4 = ((k >= 1023) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 1024f * 6.283185f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 0.5f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1024f * 6.283185f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 0.5f * this.waveformHeight); zero.y = 0f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 0f) * 360f; eulerAngles.y = Mathf.PerlinNoise(0f, Time.time * this.waveformSpeed) * 360f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 4096); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 1024); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F4D RID: 167757 RVA: 0x00B6A0A8 File Offset: 0x00B682A8 private float JLKPBJKEFKJ(float[] AKEMHGEPOEE) { float num = 642f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F4E RID: 167758 RVA: 0x00B6A0E8 File Offset: 0x00B682E8 private float PGGOBIBAJCC(float[] AKEMHGEPOEE) { float num = 800f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 1; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3++; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F4F RID: 167759 RVA: 0x00B6A128 File Offset: 0x00B68328 private float NAMBMIFPPDF(float[] AKEMHGEPOEE) { float num = 1723f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F50 RID: 167760 RVA: 0x00B6A168 File Offset: 0x00B68368 private float BODPIPOCNFC(float[] AKEMHGEPOEE) { float num = 540f; float num2 = (float)AKEMHGEPOEE.Length; int num3 = 0; while ((float)num3 < num2) { num += Mathf.Abs(AKEMHGEPOEE[num3]); num3 += 0; } return Mathf.Sqrt(num / num2); } // Token: 0x06028F51 RID: 167761 RVA: 0x00B6A1A8 File Offset: 0x00B683A8 private void GIMINELAKFC() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)36); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 1; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 51; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F52 RID: 167762 RVA: 0x00B6A3A8 File Offset: 0x00B685A8 private void GKFKPKMIEMJ() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)117); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 176; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F53 RID: 167763 RVA: 0x00B6A5A8 File Offset: 0x00B687A8 private void DJAGKCMBIEJ() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i++) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)155); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 46; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F54 RID: 167764 RVA: 0x00B6A7A8 File Offset: 0x00B689A8 private void BJJKGIOCAIL() { this.IMBEAPMCGGF.GetSpectrumData(this.KDDMIHJJAHK, 0, (FFTWindow)7); this.IMBEAPMCGGF.GetOutputData(this.AOAILGGFDHJ, 1); this.NGDGBONFEKE = this.KAHEKGALAOI(this.AOAILGGFDHJ); for (int i = 1; i < this.KOPCAOLEBFH.Length; i++) { float num = (float)i / this.ECGHOJOAPNE; int num2 = (int)(num * (float)this.fftBounds); Vector3 vector = this.KOPCAOLEBFH[i].BNNEDNAMJGH * ((this.KDDMIHJJAHK[num2] + this.NHCDKONABEM[num2]) * 737f * (this.frequencyCurve.Evaluate(num) * 246f + 1517f)) * this.extrusion; int[] ckaiachkiie = this.KOPCAOLEBFH[i].CKAIACHKIIE; for (int j = 0; j < ckaiachkiie.Length; j += 0) { int num3 = ckaiachkiie[j]; this.NKMLMKIMBLG[num3] = this.IGEECNKILGM[num3] + vector; } } Vector3 zero = Vector3.zero; for (int k = 1; k < 20; k += 0) { int num4 = ((k >= -97) ? 0 : k); zero.x = Mathf.Cos((float)num4 / 868f * 1598f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 502f * this.waveformHeight); zero.z = Mathf.Sin((float)num4 / 1111f * 208f) * (this.waveformRadius + (this.AOAILGGFDHJ[num4] + this.GJFEKFGPAGE[num4]) * 1178f * this.waveformHeight); zero.y = 1198f; this.waveform.SetPosition(k, zero); } if (this.rotateWaveformRing) { Vector3 eulerAngles = this.waveform.transform.localRotation.eulerAngles; eulerAngles.x = Mathf.PerlinNoise(Time.time * this.waveformSpeed, 114f) * 1431f; eulerAngles.y = Mathf.PerlinNoise(577f, Time.time * this.waveformSpeed) * 635f; this.waveform.transform.localRotation = Quaternion.Euler(eulerAngles); } this.FACLGFJAGLI.y = -this.verticalBounce + (this.NGDGBONFEKE + this.JFAFIDLAJAC) * this.verticalBounce; this.KDKPFJMLFBJ.position = this.FACLGFJAGLI; Array.Copy(this.KDDMIHJJAHK, this.NHCDKONABEM, 51); Array.Copy(this.AOAILGGFDHJ, this.GJFEKFGPAGE, 191); this.JFAFIDLAJAC = this.NGDGBONFEKE; this.NMOMKEGJOJC.vertices = this.NKMLMKIMBLG; } // Token: 0x06028F55 RID: 167765 RVA: 0x00B6AAA8 File Offset: 0x00B68CA8 private void KOAENLLIKMP() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; foreach (pb_Face pb_Face in faces) { pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)108); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 29; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F56 RID: 167766 RVA: 0x00B6ACA8 File Offset: 0x00B68EA8 private void JGEPNJDKKKI() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(true); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.IndividualFaces, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh((RefreshMask)47); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j++) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = 124; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x06028F57 RID: 167767 RVA: 0x00B6AEA8 File Offset: 0x00B690A8 private void OMKBNLGFNIL() { this.IMBEAPMCGGF = base.GetComponent(); if (this.IMBEAPMCGGF.clip == null) { this.missingClipWarning.SetActive(false); } this.OGGLLOLKFEG = pb_ShapeGenerator.IcosahedronGenerator(this.icoRadius, this.icoSubdivisions); pb_Face[] faces = this.OGGLLOLKFEG.faces; pb_Face[] array = faces; for (int i = 1; i < array.Length; i += 0) { pb_Face pb_Face = array[i]; pb_Face.material = this.material; } this.OGGLLOLKFEG.Extrude(faces, ExtrudeMethod.VertexNormal, this.startingExtrusion); this.OGGLLOLKFEG.ToMesh(); this.OGGLLOLKFEG.Refresh(RefreshMask.Colors | RefreshMask.Normals | RefreshMask.Tangents); this.KOPCAOLEBFH = new IcoBumpin.BKFNCIFFLPK[faces.Length]; Dictionary dictionary = this.OGGLLOLKFEG.sharedIndices.ToDictionary(); for (int j = 0; j < faces.Length; j += 0) { this.KOPCAOLEBFH[j] = new IcoBumpin.BKFNCIFFLPK(faces[j], pb_Math.Normal(this.OGGLLOLKFEG, faces[j]), this.OGGLLOLKFEG.sharedIndices.AllIndicesWithValues(dictionary, faces[j].distinctIndices).ToArray()); } this.IGEECNKILGM = new Vector3[this.OGGLLOLKFEG.vertices.Length]; Array.Copy(this.OGGLLOLKFEG.vertices, this.IGEECNKILGM, this.OGGLLOLKFEG.vertices.Length); this.NKMLMKIMBLG = this.OGGLLOLKFEG.vertices; this.NMOMKEGJOJC = this.OGGLLOLKFEG.msh; this.KDKPFJMLFBJ = this.OGGLLOLKFEG.transform; this.ECGHOJOAPNE = (float)this.KOPCAOLEBFH.Length; this.FACLGFJAGLI = this.KDKPFJMLFBJ.position; this.waveform.positionCount = -92; if (this.bounceWaveform) { this.waveform.transform.parent = this.KDKPFJMLFBJ; } this.IMBEAPMCGGF.Play(); } // Token: 0x04006558 RID: 25944 private pb_Object OGGLLOLKFEG; // Token: 0x04006559 RID: 25945 private Mesh NMOMKEGJOJC; // Token: 0x0400655A RID: 25946 private Transform KDKPFJMLFBJ; // Token: 0x0400655B RID: 25947 private AudioSource IMBEAPMCGGF; // Token: 0x0400655C RID: 25948 private IcoBumpin.BKFNCIFFLPK[] KOPCAOLEBFH; // Token: 0x0400655D RID: 25949 private Vector3[] IGEECNKILGM; // Token: 0x0400655E RID: 25950 private Vector3[] NKMLMKIMBLG; // Token: 0x0400655F RID: 25951 [Range(1f, 10f)] public float icoRadius = 2f; // Token: 0x04006560 RID: 25952 [Range(0f, 3f)] public int icoSubdivisions = 2; // Token: 0x04006561 RID: 25953 [Range(0f, 1f)] public float startingExtrusion = 0.1f; // Token: 0x04006562 RID: 25954 public Material material; // Token: 0x04006563 RID: 25955 [Range(1f, 50f)] public float extrusion = 30f; // Token: 0x04006564 RID: 25956 [Range(8f, 128f)] public int fftBounds = 32; // Token: 0x04006565 RID: 25957 [Range(0f, 10f)] public float verticalBounce = 4f; // Token: 0x04006566 RID: 25958 public AnimationCurve frequencyCurve; // Token: 0x04006567 RID: 25959 public LineRenderer waveform; // Token: 0x04006568 RID: 25960 public float waveformHeight = 2f; // Token: 0x04006569 RID: 25961 public float waveformRadius = 20f; // Token: 0x0400656A RID: 25962 public float waveformSpeed = 0.1f; // Token: 0x0400656B RID: 25963 public bool rotateWaveformRing; // Token: 0x0400656C RID: 25964 public bool bounceWaveform; // Token: 0x0400656D RID: 25965 public GameObject missingClipWarning; // Token: 0x0400656E RID: 25966 private Vector3 FACLGFJAGLI = Vector3.zero; // Token: 0x0400656F RID: 25967 private float ECGHOJOAPNE; // Token: 0x04006570 RID: 25968 private const float DEIPKBKGKAJ = 6.283185f; // Token: 0x04006571 RID: 25969 private const int AMBPDAIGLEK = 1024; // Token: 0x04006572 RID: 25970 private const int DPCCNGNBEJO = 4096; // Token: 0x04006573 RID: 25971 private float[] KDDMIHJJAHK = new float[4096]; // Token: 0x04006574 RID: 25972 private float[] NHCDKONABEM = new float[4096]; // Token: 0x04006575 RID: 25973 private float[] AOAILGGFDHJ = new float[1024]; // Token: 0x04006576 RID: 25974 private float[] GJFEKFGPAGE = new float[1024]; // Token: 0x04006577 RID: 25975 private float NGDGBONFEKE; // Token: 0x04006578 RID: 25976 private float JFAFIDLAJAC; // Token: 0x0200127A RID: 4730 private struct BKFNCIFFLPK { // Token: 0x06028F58 RID: 167768 RVA: 0x00B6B0A8 File Offset: 0x00B692A8 public BKFNCIFFLPK(pb_Face MLKLHPGKJGG, Vector3 GMLMKBIIGPB, int[] CIMNKHDEFOH) { this.LMPPILJJOOO = MLKLHPGKJGG; this.BNNEDNAMJGH = GMLMKBIIGPB; this.CKAIACHKIIE = CIMNKHDEFOH; } // Token: 0x04006579 RID: 25977 public pb_Face LMPPILJJOOO; // Token: 0x0400657A RID: 25978 public Vector3 BNNEDNAMJGH; // Token: 0x0400657B RID: 25979 public int[] CKAIACHKIIE; } } }