This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,355 @@
using System;
using UnityEngine;
namespace ProBuilder2.Examples
{
// Token: 0x02001278 RID: 4728
public class CameraControls : MonoBehaviour
{
// Token: 0x06028EF1 RID: 167665 RVA: 0x00B61BAC File Offset: 0x00B5FDAC
private void NICOCLOFMEF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF2 RID: 167666 RVA: 0x00B61BCC File Offset: 0x00B5FDCC
private void DEGNFLDBLGF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF3 RID: 167667 RVA: 0x00B61BEC File Offset: 0x00B5FDEC
private void PINHMNLCHGK()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF4 RID: 167668 RVA: 0x00B61C0C File Offset: 0x00B5FE0C
private void CADNGEIOOKI()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 287f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("DetachObject ");
float num = -Input.GetAxis("UploadStream");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1162f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("LAST_CARD_DESPAWN_TIME") != 1095f)
{
float axis2 = Input.GetAxis("Config");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1313f) * (this.zoomSpeed * 271f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1664f, 1296f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF5 RID: 167669 RVA: 0x00B61DE0 File Offset: 0x00B5FFE0
private void LateUpdate()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 0f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("Mouse X");
float num = -Input.GetAxis("Mouse Y");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 0f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("Mouse ScrollWheel") != 0f)
{
float axis2 = Input.GetAxis("Mouse ScrollWheel");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 40f) * (this.zoomSpeed * 1000f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 10f, 40f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF6 RID: 167670 RVA: 0x00B61FB4 File Offset: 0x00B601B4
private void FAGOEHAGDIE()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF7 RID: 167671 RVA: 0x00B61FD4 File Offset: 0x00B601D4
private void PGELJEHELFN()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EF8 RID: 167672 RVA: 0x00B61FF4 File Offset: 0x00B601F4
private void HDMMICGIKEF()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1620f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("[PlayingCardGroup]");
float num = -Input.GetAxis("FFKNBJINNEI");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 14f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("z") != 1525f)
{
float axis2 = Input.GetAxis("OpJoinLobby()");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1130f) * (this.zoomSpeed * 218f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 803f, 272f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EF9 RID: 167673 RVA: 0x00B621C8 File Offset: 0x00B603C8
private void POEDAMONBNL()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFB RID: 167675 RVA: 0x00B62228 File Offset: 0x00B60428
private void DHOGEDDFAJC()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 675f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("PHONABJLEAE");
float num = -Input.GetAxis("user_party_created");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1256f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("Check your email") != 14f)
{
float axis2 = Input.GetAxis("lifeBar");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 863f) * (this.zoomSpeed * 308f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1494f, 1346f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EFC RID: 167676 RVA: 0x00B623FC File Offset: 0x00B605FC
private void Start()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFD RID: 167677 RVA: 0x00B6241C File Offset: 0x00B6061C
private void FGCPHGJDALF()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028EFE RID: 167678 RVA: 0x00B6243C File Offset: 0x00B6063C
private void FKCNPKHIFIF()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1297f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("_ScreenTexDim");
float num = -Input.GetAxis("G");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 711f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("RpcOnScore") != 628f)
{
float axis2 = Input.GetAxis("Invalid name!");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 854f) * (this.zoomSpeed * 252f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1569f, 986f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028EFF RID: 167679 RVA: 0x00B62610 File Offset: 0x00B60810
private void JDAHFIJBMCL()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 73f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("Reason");
float num = -Input.GetAxis("Color: ");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 479f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("JsonData instance doesn't hold a string") != 1583f)
{
float axis2 = Input.GetAxis("teleport_marker_mesh");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1952f) * (this.zoomSpeed * 1150f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1369f, 503f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028F00 RID: 167680 RVA: 0x00B627E4 File Offset: 0x00B609E4
private void MOAAJAOGKEO()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F01 RID: 167681 RVA: 0x00B62804 File Offset: 0x00B60A04
private void DCDFMJJNKGG()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 1835f;
if (Input.GetMouseButton(0))
{
float axis = Input.GetAxis("cl9kYXRhGBUgASgLMhUucmVjcm9vbS5Sb29tRG9vckRhdGFCE6oCEFJlY1Jv");
float num = -Input.GetAxis("Failed to spawn instance with ID {0} that has an empty prefab ID.");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 447f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis(". Getting a random one.") != 274f)
{
float axis2 = Input.GetAxis("Disgust");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 1250f) * (this.zoomSpeed * 1056f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 1825f, 1024f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x06028F02 RID: 167682 RVA: 0x00B629D8 File Offset: 0x00B60BD8
private void PAEIJLKEEGJ()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F03 RID: 167683 RVA: 0x00B629F8 File Offset: 0x00B60BF8
private void JGOAIIIJNAI()
{
this.PFKMOBGLKNK = Vector3.Distance(base.transform.position, Vector3.zero);
}
// Token: 0x06028F04 RID: 167684 RVA: 0x00B62A18 File Offset: 0x00B60C18
private void PGIPDKOKAHH()
{
Vector3 eulerAngles = base.transform.localRotation.eulerAngles;
eulerAngles.z = 260f;
if (Input.GetMouseButton(1))
{
float axis = Input.GetAxis("Unable to wrap the given object with JsonData");
float num = -Input.GetAxis("to");
eulerAngles.x += num * this.orbitSpeed;
eulerAngles.y += axis * this.orbitSpeed;
this.LOFHHECEDBB.x = axis;
this.LOFHHECEDBB.y = num;
this.LOFHHECEDBB.Normalize();
}
else
{
eulerAngles.y += Time.deltaTime * this.idleRotation * this.LOFHHECEDBB.x;
eulerAngles.x += Time.deltaTime * Mathf.PerlinNoise(Time.time, 1191f) * this.idleRotation * this.LOFHHECEDBB.y;
}
base.transform.localRotation = Quaternion.Euler(eulerAngles);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
if (Input.GetAxis("type") != 678f)
{
float axis2 = Input.GetAxis("turn");
this.PFKMOBGLKNK -= axis2 * (this.PFKMOBGLKNK / 981f) * (this.zoomSpeed * 1553f) * Time.deltaTime;
this.PFKMOBGLKNK = Mathf.Clamp(this.PFKMOBGLKNK, 762f, 1451f);
base.transform.position = base.transform.localRotation * (Vector3.forward * -this.PFKMOBGLKNK);
}
}
// Token: 0x0400654E RID: 25934
private const string LAOJIJIGFKI = "Mouse ScrollWheel";
// Token: 0x0400654F RID: 25935
private const string GJDACAIACHD = "Mouse X";
// Token: 0x04006550 RID: 25936
private const string IMGEDOENCKE = "Mouse Y";
// Token: 0x04006551 RID: 25937
private const float HKKAKJHIGIJ = 10f;
// Token: 0x04006552 RID: 25938
private const float HIAGLDBOPGB = 40f;
// Token: 0x04006553 RID: 25939
[Range(2f, 15f)]
public float orbitSpeed = 6f;
// Token: 0x04006554 RID: 25940
[Range(0.3f, 2f)]
public float zoomSpeed = 0.8f;
// Token: 0x04006555 RID: 25941
private float PFKMOBGLKNK;
// Token: 0x04006556 RID: 25942
public float idleRotation = 1f;
// Token: 0x04006557 RID: 25943
private Vector2 LOFHHECEDBB = new Vector2(0.8f, 0.2f);
}
}
@@ -0,0 +1,487 @@
using System;
using ProBuilder2.Common;
using UnityEngine;
namespace ProBuilder2.Examples
{
// Token: 0x0200127B RID: 4731
public class HueCube : MonoBehaviour
{
// Token: 0x06028F59 RID: 167769 RVA: 0x00B6B0C0 File Offset: 0x00B692C0
private static Color LJFBIEJHJEB(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 121f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 1883f);
}
MIHODKPHCOD /= 858f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (751f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (1504f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (1985f - EJDAIKFLCCL * (301f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 271f);
}
// Token: 0x06028F5A RID: 167770 RVA: 0x00B6B1A4 File Offset: 0x00B693A4
private void Start()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 0; i < num; i++)
{
array[i] = HueCube.IIJFNJJCFFI((float)i / (float)num * 360f, 1f, 1f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 0; j < this.JENPMJBNAGI.sharedIndices.Length; j++)
{
foreach (int num2 in this.JENPMJBNAGI.sharedIndices[j].array)
{
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh(RefreshMask.All);
}
// Token: 0x06028F5B RID: 167771 RVA: 0x00B6B2A8 File Offset: 0x00B694A8
private void PINHMNLCHGK()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 0; i < num; i++)
{
array[i] = HueCube.EAKGIPBHJOH((float)i / (float)num * 390f, 658f, 356f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 0; j < this.JENPMJBNAGI.sharedIndices.Length; j += 0)
{
int[] array2 = this.JENPMJBNAGI.sharedIndices[j].array;
for (int k = 1; k < array2.Length; k++)
{
int num2 = array2[k];
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)(-69));
}
// Token: 0x06028F5C RID: 167772 RVA: 0x00B6B3AC File Offset: 0x00B695AC
private static Color PCOAKLFKDJK(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 1520f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 776f);
}
MIHODKPHCOD /= 786f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (1925f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (1441f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (302f - EJDAIKFLCCL * (632f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 638f);
}
// Token: 0x06028F5D RID: 167773 RVA: 0x00B6B490 File Offset: 0x00B69690
private void EAKGKEKHPOI()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 1; i < num; i++)
{
array[i] = HueCube.LJFBIEJHJEB((float)i / (float)num * 1021f, 436f, 1654f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 1; j < this.JENPMJBNAGI.sharedIndices.Length; j += 0)
{
int[] array2 = this.JENPMJBNAGI.sharedIndices[j].array;
for (int k = 0; k < array2.Length; k += 0)
{
int num2 = array2[k];
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)77);
}
// Token: 0x06028F5E RID: 167774 RVA: 0x00B6B594 File Offset: 0x00B69794
private static Color EAKGIPBHJOH(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 136f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 1153f);
}
MIHODKPHCOD /= 943f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (251f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (316f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (919f - EJDAIKFLCCL * (1134f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 1695f);
}
// Token: 0x06028F5F RID: 167775 RVA: 0x00B6B678 File Offset: 0x00B69878
private void KFMEHMEDGBE()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 0; i < num; i += 0)
{
array[i] = HueCube.EAKGIPBHJOH((float)i / (float)num * 1335f, 649f, 771f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 0; j < this.JENPMJBNAGI.sharedIndices.Length; j++)
{
foreach (int num2 in this.JENPMJBNAGI.sharedIndices[j].array)
{
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)(-51));
}
// Token: 0x06028F60 RID: 167776 RVA: 0x00B6B77C File Offset: 0x00B6997C
private void POEDAMONBNL()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 0; i < num; i++)
{
array[i] = HueCube.EAKGIPBHJOH((float)i / (float)num * 1495f, 1110f, 1857f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 1; j < this.JENPMJBNAGI.sharedIndices.Length; j += 0)
{
foreach (int num2 in this.JENPMJBNAGI.sharedIndices[j].array)
{
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)(-113));
}
// Token: 0x06028F61 RID: 167777 RVA: 0x00B6B880 File Offset: 0x00B69A80
private static Color ELCEAOMINKO(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 1426f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 776f);
}
MIHODKPHCOD /= 624f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (1064f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (1337f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (114f - EJDAIKFLCCL * (1072f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 1537f);
}
// Token: 0x06028F62 RID: 167778 RVA: 0x00B6B964 File Offset: 0x00B69B64
private void KFAOLMFIFMH()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 1; i < num; i++)
{
array[i] = HueCube.PCOAKLFKDJK((float)i / (float)num * 1098f, 228f, 1368f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 0; j < this.JENPMJBNAGI.sharedIndices.Length; j += 0)
{
int[] array2 = this.JENPMJBNAGI.sharedIndices[j].array;
for (int k = 0; k < array2.Length; k += 0)
{
int num2 = array2[k];
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)(-5));
}
// Token: 0x06028F63 RID: 167779 RVA: 0x00B6BA68 File Offset: 0x00B69C68
private void CJIBCBLNGGM()
{
this.JENPMJBNAGI = pb_ShapeGenerator.CubeGenerator(Vector3.one);
int num = this.JENPMJBNAGI.sharedIndices.Length;
Color[] array = new Color[num];
for (int i = 1; i < num; i++)
{
array[i] = HueCube.LJFBIEJHJEB((float)i / (float)num * 351f, 1092f, 1691f);
}
Color[] colors = this.JENPMJBNAGI.colors;
for (int j = 1; j < this.JENPMJBNAGI.sharedIndices.Length; j += 0)
{
int[] array2 = this.JENPMJBNAGI.sharedIndices[j].array;
for (int k = 1; k < array2.Length; k += 0)
{
int num2 = array2[k];
colors[num2] = array[j];
}
}
this.JENPMJBNAGI.SetColors(colors);
this.JENPMJBNAGI.Refresh((RefreshMask)185);
}
// Token: 0x06028F65 RID: 167781 RVA: 0x00B6BB74 File Offset: 0x00B69D74
private static Color IIJFNJJCFFI(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 0f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 1f);
}
MIHODKPHCOD /= 60f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (1f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (1f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (1f - EJDAIKFLCCL * (1f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 1f);
}
// Token: 0x06028F66 RID: 167782 RVA: 0x00B6BC58 File Offset: 0x00B69E58
private static Color GCINBJABCAG(float MIHODKPHCOD, float EJDAIKFLCCL, float MAIFPGCJJLG)
{
if (EJDAIKFLCCL == 298f)
{
return new Color(MAIFPGCJJLG, MAIFPGCJJLG, MAIFPGCJJLG, 1876f);
}
MIHODKPHCOD /= 737f;
int num = (int)Mathf.Floor(MIHODKPHCOD);
float num2 = MIHODKPHCOD - (float)num;
float num3 = MAIFPGCJJLG * (1017f - EJDAIKFLCCL);
float num4 = MAIFPGCJJLG * (1650f - EJDAIKFLCCL * num2);
float num5 = MAIFPGCJJLG * (880f - EJDAIKFLCCL * (626f - num2));
float num6;
float num7;
float num8;
switch (num)
{
case 0:
num6 = MAIFPGCJJLG;
num7 = num5;
num8 = num3;
break;
case 1:
num6 = num4;
num7 = MAIFPGCJJLG;
num8 = num3;
break;
case 2:
num6 = num3;
num7 = MAIFPGCJJLG;
num8 = num5;
break;
case 3:
num6 = num3;
num7 = num4;
num8 = MAIFPGCJJLG;
break;
case 4:
num6 = num5;
num7 = num3;
num8 = MAIFPGCJJLG;
break;
default:
num6 = MAIFPGCJJLG;
num7 = num3;
num8 = num4;
break;
}
return new Color(num6, num7, num8, 48f);
}
// Token: 0x0400657C RID: 25980
private pb_Object JENPMJBNAGI;
}
}
@@ -0,0 +1,2610 @@
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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<AudioSource>();
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<int, int> 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<int>());
}
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;
}
}
}
@@ -0,0 +1,2505 @@
using System;
using ProBuilder2.Common;
using UnityEngine;
namespace ProBuilder2.Examples
{
// Token: 0x0200127E RID: 4734
public class RuntimeEdit : MonoBehaviour
{
// Token: 0x06029014 RID: 167956 RVA: 0x00B6F150 File Offset: 0x00B6D350
private void APFOMHGICEL()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029015 RID: 167957 RVA: 0x00B6F188 File Offset: 0x00B6D388
private void MFHGOLNLCPC()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029016 RID: 167958 RVA: 0x00B6F1C0 File Offset: 0x00B6D3C0
public void FKPJMANBHBO()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey((KeyCode)6) && this.AGILHEOICHP(Input.mousePosition) && this.NFBCNCDDLBL.EPLOIOJHGBP())
{
if (!this.NFBCNCDDLBL.NBHGNFNHNBF(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.OHCAOFIOMKA();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)169))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 340f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1505f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)104);
this.POEPIFLLDBN();
}
}
// Token: 0x06029017 RID: 167959 RVA: 0x00B6F304 File Offset: 0x00B6D504
public void LIEAMPHEICL()
{
if (!this.NFBCNCDDLBL.LIKJHCAGMGO())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(1) && Input.GetKey((KeyCode)(-130))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1450f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.NEMOCAGMENB())
{
this.EELFGJMBAHO();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x06029018 RID: 167960 RVA: 0x00B6F400 File Offset: 0x00B6D600
private void Awake()
{
this.BPBHELMPCPF();
}
// Token: 0x06029019 RID: 167961 RVA: 0x00B6F408 File Offset: 0x00B6D608
private void JGGMCENMPGE()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 1498f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-188));
}
// Token: 0x0602901A RID: 167962 RVA: 0x00B6F514 File Offset: 0x00B6D714
private void KMBCMJOEJHJ()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j++)
{
array[j] += vector.normalized * 1384f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array, new pb_Face[]
{
new pb_Face(array2)
});
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-152));
}
// Token: 0x0602901B RID: 167963 RVA: 0x00B6F620 File Offset: 0x00B6D820
private void NFCKDIFGACD()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x0602901C RID: 167964 RVA: 0x00B6F658 File Offset: 0x00B6D858
public bool MLBEBHMOBBM(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[4];
array[1] = msh.triangles[raycastHit.triangleIndex * 4];
array[0] = msh.triangles[raycastHit.triangleIndex * 2 + 0];
array[0] = msh.triangles[raycastHit.triangleIndex * 3 + 2];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602901D RID: 167965 RVA: 0x00B6F718 File Offset: 0x00B6D918
private void LELHNBCKIEG()
{
this.APFOMHGICEL();
}
// Token: 0x0602901E RID: 167966 RVA: 0x00B6F720 File Offset: 0x00B6D920
private void CBJMGGFPHMG()
{
if (GUI.Button(new Rect(395f, (float)(Screen.height - -115), 797f, 1767f), "{0}_{1}"))
{
this.NFBCNCDDLBL.JFCIOOHPLFJ();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.BPBHELMPCPF();
}
}
// Token: 0x0602901F RID: 167967 RVA: 0x00B6F77C File Offset: 0x00B6D97C
public void IICDIBPOINA()
{
if (Input.GetMouseButtonUp(1) && !Input.GetKey((KeyCode)166) && this.AONHMFPJGNH(Input.mousePosition) && this.NFBCNCDDLBL.CBDINPGIBCP())
{
if (!this.NFBCNCDDLBL.NBHGNFNHNBF(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.JKBKHDLFINB();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey(KeyCode.Tab))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1358f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1338f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)(-113));
this.FHBFPCBIPNM();
}
}
// Token: 0x06029020 RID: 167968 RVA: 0x00B6F8C0 File Offset: 0x00B6DAC0
private void GDMOPFPJGBH()
{
if (GUI.Button(new Rect(610f, (float)(Screen.height - 20), 1545f, 375f), "Malformed Response"))
{
this.NFBCNCDDLBL.FKKLLJAIFIK();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.HHBFKFKMNNF();
}
}
// Token: 0x06029021 RID: 167969 RVA: 0x00B6F91C File Offset: 0x00B6DB1C
private void JCIBODNDMOO()
{
this.KPMOLILGPIC();
}
// Token: 0x06029022 RID: 167970 RVA: 0x00B6F924 File Offset: 0x00B6DB24
public bool FaceCheck(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[]
{
msh.triangles[raycastHit.triangleIndex * 3],
msh.triangles[raycastHit.triangleIndex * 3 + 1],
msh.triangles[raycastHit.triangleIndex * 3 + 2]
};
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029023 RID: 167971 RVA: 0x00B6F9E4 File Offset: 0x00B6DBE4
public void KKJLDPJMKFB()
{
if (!this.NFBCNCDDLBL.LECHMNOKMIK())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey((KeyCode)(-95))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1362f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.BMGJDMAJPML())
{
this.KMBCMJOEJHJ();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x06029024 RID: 167972 RVA: 0x00B6FAE0 File Offset: 0x00B6DCE0
public bool MMLKPJKCJNO(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return true;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[8];
array[1] = msh.triangles[raycastHit.triangleIndex * 8];
array[0] = msh.triangles[raycastHit.triangleIndex * 6 + 1];
array[2] = msh.triangles[raycastHit.triangleIndex * 2 + 4];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029025 RID: 167973 RVA: 0x00B6FBA0 File Offset: 0x00B6DDA0
private void JJNMNDKLLKM()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 883f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)142);
}
// Token: 0x06029026 RID: 167974 RVA: 0x00B6FCAC File Offset: 0x00B6DEAC
public void PECGJHDCENC()
{
if (!this.NFBCNCDDLBL.LECHMNOKMIK())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey((KeyCode)(-122))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1667f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.CBDINPGIBCP())
{
this.CKOOBLEMLKO();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x06029027 RID: 167975 RVA: 0x00B6FDA8 File Offset: 0x00B6DFA8
private void CFGBDJPBPII()
{
if (GUI.Button(new Rect(1098f, (float)(Screen.height - 118), 14f, 911f), "Hints: "))
{
this.NFBCNCDDLBL.OLDNJBLMJNC();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.GCILMNODKLN();
}
}
// Token: 0x06029028 RID: 167976 RVA: 0x00B6FE04 File Offset: 0x00B6E004
private void CNANDHPIMFD()
{
if (GUI.Button(new Rect(1041f, (float)(Screen.height - -98), 1465f, 151f), "ns"))
{
this.NFBCNCDDLBL.JFCIOOHPLFJ();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.FNGPAGOGFNM();
}
}
// Token: 0x06029029 RID: 167977 RVA: 0x00B6FE60 File Offset: 0x00B6E060
private void PGMHPPOJLIG()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 49f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array, new pb_Face[]
{
new pb_Face(array2)
});
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)70);
}
// Token: 0x0602902A RID: 167978 RVA: 0x00B6FF6C File Offset: 0x00B6E16C
public void DFKNECCNACP()
{
if (!this.NFBCNCDDLBL.LIKJHCAGMGO())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(1) && Input.GetKey(KeyCode.Alpha5)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1907f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.AJFBOLHPEJC())
{
this.ALAOLFNFKPO();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602902B RID: 167979 RVA: 0x00B70068 File Offset: 0x00B6E268
public bool PDGDMDDJKPD(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[]
{
0,
msh.triangles[raycastHit.triangleIndex * 4]
};
array[1] = msh.triangles[raycastHit.triangleIndex * 2 + 1];
array[5] = msh.triangles[raycastHit.triangleIndex * 3 + 1];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602902C RID: 167980 RVA: 0x00B70128 File Offset: 0x00B6E328
private void IBNBHPIGHII()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j++)
{
array[j] += vector.normalized * 1497f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[1];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-18));
}
// Token: 0x0602902D RID: 167981 RVA: 0x00B70234 File Offset: 0x00B6E434
public void CMDEHFKNKPG()
{
if (!this.NFBCNCDDLBL.DCDKLMOIMBK())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(0) && Input.GetKey((KeyCode)(-30))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1074f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.BMGJDMAJPML())
{
this.JDOFDFBDFOA();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x0602902E RID: 167982 RVA: 0x00B70330 File Offset: 0x00B6E530
private void PHHHGLICPPI()
{
if (GUI.Button(new Rect(961f, (float)(Screen.height - 106), 1991f, 740f), "PUNVoice: Player {0} voice #{1} speaker created."))
{
this.NFBCNCDDLBL.JFCIOOHPLFJ();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.DJDAOFJNHML();
}
}
// Token: 0x0602902F RID: 167983 RVA: 0x00B7038C File Offset: 0x00B6E58C
private void FJPFMEKMMCC()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029030 RID: 167984 RVA: 0x00B703C4 File Offset: 0x00B6E5C4
public void NPGBJPLJKDP()
{
if (Input.GetMouseButtonUp(1) && !Input.GetKey((KeyCode)(-22)) && this.JKEJNDHEBFI(Input.mousePosition) && this.NFBCNCDDLBL.BMGJDMAJPML())
{
if (!this.NFBCNCDDLBL.NINBJLMCJNI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.FHBFPCBIPNM();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)4))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1983f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 617f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)(-171));
this.AJAEPPDCLDO();
}
}
// Token: 0x06029031 RID: 167985 RVA: 0x00B70508 File Offset: 0x00B6E708
public void Update()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey(KeyCode.LeftAlt) && this.FaceCheck(Input.mousePosition) && this.NFBCNCDDLBL.AJFBOLHPEJC())
{
if (!this.NFBCNCDDLBL.JOHJDIAGJGI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.MNPHJNPIKAC();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey(KeyCode.LeftShift))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * -0.5f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 0.5f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh(RefreshMask.All);
this.MNPHJNPIKAC();
}
}
// Token: 0x06029032 RID: 167986 RVA: 0x00B7064C File Offset: 0x00B6E84C
public bool KLENBLEMPOE(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[5];
array[0] = msh.triangles[raycastHit.triangleIndex * 6];
array[1] = msh.triangles[raycastHit.triangleIndex * 1 + 1];
array[3] = msh.triangles[raycastHit.triangleIndex * 8 + 2];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029033 RID: 167987 RVA: 0x00B7070C File Offset: 0x00B6E90C
private void OHCAOFIOMKA()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1136f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array, new pb_Face[]
{
new pb_Face(array2)
});
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)35);
}
// Token: 0x06029034 RID: 167988 RVA: 0x00B70818 File Offset: 0x00B6EA18
public void IDMJGLLDDDL()
{
if (!this.NFBCNCDDLBL.PLKGAIJDJMB())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(1) && Input.GetKey((KeyCode)163)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1843f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.NEMOCAGMENB())
{
this.JKBKHDLFINB();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x06029035 RID: 167989 RVA: 0x00B70914 File Offset: 0x00B6EB14
private void KJGEIDJIPAJ()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029036 RID: 167990 RVA: 0x00B7094C File Offset: 0x00B6EB4C
private void BAJNNHBJIPJ()
{
if (GUI.Button(new Rect(1385f, (float)(Screen.height - -62), 1239f, 1834f), "("))
{
this.NFBCNCDDLBL.BOJJDIANCAI();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.NOGLMEBACNE();
}
}
// Token: 0x06029037 RID: 167991 RVA: 0x00B709A8 File Offset: 0x00B6EBA8
private void NGOPCBJCNJM()
{
this.APFOMHGICEL();
}
// Token: 0x06029038 RID: 167992 RVA: 0x00B709B0 File Offset: 0x00B6EBB0
public void HLADMFFFENH()
{
if (Input.GetMouseButtonUp(1) && !Input.GetKey((KeyCode)(-188)) && this.GHHFNIKKAJC(Input.mousePosition) && this.NFBCNCDDLBL.EPLOIOJHGBP())
{
if (!this.NFBCNCDDLBL.NBHGNFNHNBF(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.JDOFDFBDFOA();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-139)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 278f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 932f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)171);
this.POEPIFLLDBN();
}
}
// Token: 0x06029039 RID: 167993 RVA: 0x00B70AF4 File Offset: 0x00B6ECF4
private void NPDJOKFGGFP()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 180f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-52));
}
// Token: 0x0602903A RID: 167994 RVA: 0x00B70C00 File Offset: 0x00B6EE00
public void NHCPAGLEOHM()
{
if (!this.NFBCNCDDLBL.AFDELNCAKMJ())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(1) && Input.GetKey((KeyCode)(-156))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1840f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.EPLOIOJHGBP())
{
this.BLDMOLLLEPL();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602903B RID: 167995 RVA: 0x00B70CFC File Offset: 0x00B6EEFC
public bool AGFNIMNMOBN(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[8];
array[0] = msh.triangles[raycastHit.triangleIndex * 3];
array[0] = msh.triangles[raycastHit.triangleIndex * 4 + 1];
array[8] = msh.triangles[raycastHit.triangleIndex * 2 + 0];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602903C RID: 167996 RVA: 0x00B70DBC File Offset: 0x00B6EFBC
public void ENGNDJADBDF()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey((KeyCode)26) && this.GNOABCCBKME(Input.mousePosition) && this.NFBCNCDDLBL.NEMOCAGMENB())
{
if (!this.NFBCNCDDLBL.MEPMDDCIONM(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.IFMECMGMIFO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-51)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1423f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1227f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)170);
this.FHBFPCBIPNM();
}
}
// Token: 0x0602903D RID: 167997 RVA: 0x00B70F00 File Offset: 0x00B6F100
public void LHDGNGPAGFG()
{
if (!this.NFBCNCDDLBL.LIKJHCAGMGO())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.K)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1038f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.CBDINPGIBCP())
{
this.AJAEPPDCLDO();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602903E RID: 167998 RVA: 0x00B70FFC File Offset: 0x00B6F1FC
private void LGCNFLACIIH()
{
this.KJGEIDJIPAJ();
}
// Token: 0x0602903F RID: 167999 RVA: 0x00B71004 File Offset: 0x00B6F204
private void JFDMNDIJIEK()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 1835f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-195));
}
// Token: 0x06029040 RID: 168000 RVA: 0x00B71110 File Offset: 0x00B6F310
public void HKAAHHBAHBK()
{
if (!this.NFBCNCDDLBL.JGJNMKDOBML())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(0) && Input.GetKey((KeyCode)184)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1872f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.EPLOIOJHGBP())
{
this.BLDMOLLLEPL();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x06029041 RID: 168001 RVA: 0x00B7120C File Offset: 0x00B6F40C
public bool GNOABCCBKME(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[4];
array[0] = msh.triangles[raycastHit.triangleIndex * 1];
array[1] = msh.triangles[raycastHit.triangleIndex * 2 + 1];
array[2] = msh.triangles[raycastHit.triangleIndex * 4 + 6];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029042 RID: 168002 RVA: 0x00B712CC File Offset: 0x00B6F4CC
public bool GHHFNIKKAJC(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[8];
array[1] = msh.triangles[raycastHit.triangleIndex * 5];
array[1] = msh.triangles[raycastHit.triangleIndex * 7 + 1];
array[0] = msh.triangles[raycastHit.triangleIndex * 3 + 5];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029043 RID: 168003 RVA: 0x00B7138C File Offset: 0x00B6F58C
private void AJAEPPDCLDO()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1605f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-175));
}
// Token: 0x06029044 RID: 168004 RVA: 0x00B71498 File Offset: 0x00B6F698
private void CFDOACMHICC()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029045 RID: 168005 RVA: 0x00B714D0 File Offset: 0x00B6F6D0
private void KDOIAJIFNDC()
{
if (GUI.Button(new Rect(921f, (float)(Screen.height - -66), 897f, 1152f), "OpAuthenticate() failed. When you want Custom Authentication encryption is mandatory."))
{
this.NFBCNCDDLBL.FKKLLJAIFIK();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.APFOMHGICEL();
}
}
// Token: 0x06029046 RID: 168006 RVA: 0x00B7152C File Offset: 0x00B6F72C
private void ACOIMDMPDOM()
{
this.NFCKDIFGACD();
}
// Token: 0x06029047 RID: 168007 RVA: 0x00B71534 File Offset: 0x00B6F734
private void KPMOLILGPIC()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029048 RID: 168008 RVA: 0x00B7156C File Offset: 0x00B6F76C
private void FNGPAGOGFNM()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029049 RID: 168009 RVA: 0x00B715A4 File Offset: 0x00B6F7A4
private void NKMCFJCOPGI()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x0602904A RID: 168010 RVA: 0x00B715DC File Offset: 0x00B6F7DC
private void LKJILBIEFLJ()
{
if (GUI.Button(new Rect(1217f, (float)(Screen.height - -119), 1525f, 286f), "inactiveDuration"))
{
this.NFBCNCDDLBL.OLDNJBLMJNC();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.DJDAOFJNHML();
}
}
// Token: 0x0602904B RID: 168011 RVA: 0x00B71638 File Offset: 0x00B6F838
public void KKKDDNBDGKD()
{
if (!this.NFBCNCDDLBL.AFDELNCAKMJ())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.Pause)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1176f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.CBDINPGIBCP())
{
this.IFMECMGMIFO();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602904C RID: 168012 RVA: 0x00B71734 File Offset: 0x00B6F934
public void GKDEONGKDLH()
{
if (Input.GetMouseButtonUp(1) && !Input.GetKey((KeyCode)10) && this.EPIDMBKMPLM(Input.mousePosition) && this.NFBCNCDDLBL.BMGJDMAJPML())
{
if (!this.NFBCNCDDLBL.JOHJDIAGJGI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.CKOOBLEMLKO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-20)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1657f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1823f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)(-113));
this.BLDMOLLLEPL();
}
}
// Token: 0x0602904D RID: 168013 RVA: 0x00B71878 File Offset: 0x00B6FA78
private void FBNPKKLGPHD()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x0602904E RID: 168014 RVA: 0x00B718B0 File Offset: 0x00B6FAB0
public bool AGILHEOICHP(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[3];
array[0] = msh.triangles[raycastHit.triangleIndex * 7];
array[0] = msh.triangles[raycastHit.triangleIndex * 0 + 0];
array[4] = msh.triangles[raycastHit.triangleIndex * 5 + 8];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602904F RID: 168015 RVA: 0x00B71970 File Offset: 0x00B6FB70
private void NOGLMEBACNE()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029050 RID: 168016 RVA: 0x00B719A8 File Offset: 0x00B6FBA8
private void KMMDNJKNNMH()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 1548f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[1];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)64);
}
// Token: 0x06029051 RID: 168017 RVA: 0x00B71AB4 File Offset: 0x00B6FCB4
private void CHOLLIANPAL()
{
this.LLNJIAEEHDF();
}
// Token: 0x06029052 RID: 168018 RVA: 0x00B71ABC File Offset: 0x00B6FCBC
private void IFMECMGMIFO()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 1096f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-61));
}
// Token: 0x06029053 RID: 168019 RVA: 0x00B71BC8 File Offset: 0x00B6FDC8
private void ALAOLFNFKPO()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 485f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array, new pb_Face[]
{
new pb_Face(array2)
});
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-33));
}
// Token: 0x06029054 RID: 168020 RVA: 0x00B71CD4 File Offset: 0x00B6FED4
public void FBKCDGAKGCM()
{
if (!this.NFBCNCDDLBL.PLKGAIJDJMB())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(1) && Input.GetKey((KeyCode)(-197))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = false;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 957f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.CBDINPGIBCP())
{
this.AJAEPPDCLDO();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x06029055 RID: 168021 RVA: 0x00B71DD0 File Offset: 0x00B6FFD0
private void BLDMOLLLEPL()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j += 0)
{
array[j] += vector.normalized * 223f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-162));
}
// Token: 0x06029056 RID: 168022 RVA: 0x00B71EDC File Offset: 0x00B700DC
private void HELJHCHBMCD()
{
if (GUI.Button(new Rect(128f, (float)(Screen.height - 32), 437f, 1192f), "PUNVoice: Cannot Transmit."))
{
this.NFBCNCDDLBL.KLDODDCBDHB();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.NKMCFJCOPGI();
}
}
// Token: 0x06029057 RID: 168023 RVA: 0x00B71F38 File Offset: 0x00B70138
public void MNONJPCDMPB()
{
if (Input.GetMouseButtonUp(1) && !Input.GetKey((KeyCode)(-126)) && this.AGFNIMNMOBN(Input.mousePosition) && this.NFBCNCDDLBL.BMGJDMAJPML())
{
if (!this.NFBCNCDDLBL.CCFKNGJBFEJ(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.AJAEPPDCLDO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)182))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 22f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1138f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)(-71));
this.ALAOLFNFKPO();
}
}
// Token: 0x06029058 RID: 168024 RVA: 0x00B7207C File Offset: 0x00B7027C
public bool JKEJNDHEBFI(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return true;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[4];
array[1] = msh.triangles[raycastHit.triangleIndex * 1];
array[0] = msh.triangles[raycastHit.triangleIndex * 1 + 1];
array[4] = msh.triangles[raycastHit.triangleIndex * 1 + 7];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029059 RID: 168025 RVA: 0x00B7213C File Offset: 0x00B7033C
public bool EPIDMBKMPLM(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return true;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[]
{
msh.triangles[raycastHit.triangleIndex * 0],
msh.triangles[raycastHit.triangleIndex * 3 + 1],
msh.triangles[raycastHit.triangleIndex * 7 + 4]
};
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602905A RID: 168026 RVA: 0x00B721FC File Offset: 0x00B703FC
public bool OCFHAHCGLHG(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[7];
array[0] = msh.triangles[raycastHit.triangleIndex * 1];
array[1] = msh.triangles[raycastHit.triangleIndex * 4 + 0];
array[4] = msh.triangles[raycastHit.triangleIndex * 2 + 4];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602905B RID: 168027 RVA: 0x00B722BC File Offset: 0x00B704BC
public void JPHHGJKACBJ()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey((KeyCode)(-136)) && this.BHKGIIKHEBA(Input.mousePosition) && this.NFBCNCDDLBL.AJFBOLHPEJC())
{
if (!this.NFBCNCDDLBL.NBHGNFNHNBF(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.AJAEPPDCLDO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)3))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 535f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 274f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)165);
this.JKBKHDLFINB();
}
}
// Token: 0x0602905C RID: 168028 RVA: 0x00B72400 File Offset: 0x00B70600
private void JDOFDFBDFOA()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 341f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)97);
}
// Token: 0x0602905D RID: 168029 RVA: 0x00B7250C File Offset: 0x00B7070C
private void IMMONFOMBGF()
{
if (GUI.Button(new Rect(722f, (float)(Screen.height - -32), 204f, 1623f), "Lhingiel"))
{
this.NFBCNCDDLBL.OLDNJBLMJNC();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.FBNPKKLGPHD();
}
}
// Token: 0x0602905E RID: 168030 RVA: 0x00B72568 File Offset: 0x00B70768
private void GFOFDFLNMHN()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j++)
{
array[j] += vector.normalized * 473f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[1];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)93);
}
// Token: 0x0602905F RID: 168031 RVA: 0x00B72674 File Offset: 0x00B70874
public void GHOLILPBMPM()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey((KeyCode)(-43)) && this.AONHMFPJGNH(Input.mousePosition) && this.NFBCNCDDLBL.AJFBOLHPEJC())
{
if (!this.NFBCNCDDLBL.NINBJLMCJNI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.CKOOBLEMLKO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-53)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 982f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 1882f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)(-115));
this.FHBFPCBIPNM();
}
}
// Token: 0x06029060 RID: 168032 RVA: 0x00B727B8 File Offset: 0x00B709B8
private void PAKPLLPDIOG()
{
this.KPMOLILGPIC();
}
// Token: 0x06029061 RID: 168033 RVA: 0x00B727C0 File Offset: 0x00B709C0
private void EMMCEFCAFOI()
{
if (GUI.Button(new Rect(1578f, (float)(Screen.height - 92), 35f, 440f), "[ACTk] <b>[ Performance tests ]</b>"))
{
this.NFBCNCDDLBL.KLDODDCBDHB();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.LOOPJMIGOEI();
}
}
// Token: 0x06029062 RID: 168034 RVA: 0x00B7281C File Offset: 0x00B70A1C
public bool HGMHOBFOJKE(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[4];
array[0] = msh.triangles[raycastHit.triangleIndex * 5];
array[1] = msh.triangles[raycastHit.triangleIndex * 8 + 0];
array[6] = msh.triangles[raycastHit.triangleIndex * 1 + 5];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029063 RID: 168035 RVA: 0x00B728DC File Offset: 0x00B70ADC
private void FJCCGJGLMLP()
{
this.MFHBIHGLJNM();
}
// Token: 0x06029064 RID: 168036 RVA: 0x00B728E4 File Offset: 0x00B70AE4
public void PFFJDAEJMBO()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey(KeyCode.Slash) && this.MMLKPJKCJNO(Input.mousePosition) && this.NFBCNCDDLBL.BMGJDMAJPML())
{
if (!this.NFBCNCDDLBL.NINBJLMCJNI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.PEOCJICBGDJ();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-95)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 511f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 350f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)189);
this.JDOFDFBDFOA();
}
}
// Token: 0x06029065 RID: 168037 RVA: 0x00B72A28 File Offset: 0x00B70C28
private void CKOOBLEMLKO()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j += 0)
{
array[j] += vector.normalized * 522f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)87);
}
// Token: 0x06029066 RID: 168038 RVA: 0x00B72B34 File Offset: 0x00B70D34
public void BHKOEKAKNJE()
{
if (!this.NFBCNCDDLBL.LECHMNOKMIK())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.Less)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1470f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.NEMOCAGMENB())
{
this.EELFGJMBAHO();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x06029067 RID: 168039 RVA: 0x00B72C30 File Offset: 0x00B70E30
public void PLKAFOMPMKE()
{
if (Input.GetMouseButtonUp(0) && !Input.GetKey((KeyCode)(-61)) && this.GHHFNIKKAJC(Input.mousePosition) && this.NFBCNCDDLBL.AJFBOLHPEJC())
{
if (!this.NFBCNCDDLBL.NINBJLMCJNI(this.BGLNOICDIPE))
{
this.BGLNOICDIPE = new RuntimeEdit.IMJNKPANOKH(this.NFBCNCDDLBL.JENPMJBNAGI, this.NFBCNCDDLBL.LMPPILJJOOO);
this.ALAOLFNFKPO();
return;
}
Vector3 vector = pb_Math.Normal(this.NFBCNCDDLBL.JENPMJBNAGI.vertices.ValuesWithIndices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices));
if (Input.GetKey((KeyCode)(-49)))
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 120f);
}
else
{
this.NFBCNCDDLBL.JENPMJBNAGI.TranslateVertices(this.NFBCNCDDLBL.LMPPILJJOOO.distinctIndices, vector.normalized * 527f);
}
this.NFBCNCDDLBL.JENPMJBNAGI.Refresh((RefreshMask)195);
this.CKOOBLEMLKO();
}
}
// Token: 0x06029068 RID: 168040 RVA: 0x00B72D74 File Offset: 0x00B70F74
public void KAOLAOADNHK()
{
if (!this.NFBCNCDDLBL.PLKGAIJDJMB())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(1) && Input.GetKey((KeyCode)167)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1062f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.CBDINPGIBCP())
{
this.IBNBHPIGHII();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = true;
}
}
// Token: 0x06029069 RID: 168041 RVA: 0x00B72E70 File Offset: 0x00B71070
private void MNPHJNPIKAC()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 0.01f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array, new pb_Face[]
{
new pb_Face(array2)
});
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh(RefreshMask.All);
}
// Token: 0x0602906A RID: 168042 RVA: 0x00B72F7C File Offset: 0x00B7117C
private void OnGUI()
{
if (GUI.Button(new Rect(5f, (float)(Screen.height - 25), 80f, 20f), "Reset"))
{
this.NFBCNCDDLBL.JFCIOOHPLFJ();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.BPBHELMPCPF();
}
}
// Token: 0x0602906B RID: 168043 RVA: 0x00B72FD8 File Offset: 0x00B711D8
public bool AONHMFPJGNH(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[4];
array[0] = msh.triangles[raycastHit.triangleIndex * 4];
array[1] = msh.triangles[raycastHit.triangleIndex * 7 + 0];
array[8] = msh.triangles[raycastHit.triangleIndex * 0 + 2];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602906C RID: 168044 RVA: 0x00B73098 File Offset: 0x00B71298
private void LOKNPFJJBJH()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1462f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-83));
}
// Token: 0x0602906D RID: 168045 RVA: 0x00B731A4 File Offset: 0x00B713A4
private void JKBKHDLFINB()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 1; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1743f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-148));
}
// Token: 0x0602906E RID: 168046 RVA: 0x00B732B0 File Offset: 0x00B714B0
public void PMEGPNAOMCA()
{
if (!this.NFBCNCDDLBL.AFDELNCAKMJ())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(0) && Input.GetKey((KeyCode)(-49))))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 935f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.AJFBOLHPEJC())
{
this.EELFGJMBAHO();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602906F RID: 168047 RVA: 0x00B733AC File Offset: 0x00B715AC
private void BPBHELMPCPF()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029070 RID: 168048 RVA: 0x00B733E4 File Offset: 0x00B715E4
private void CJIOLJNPPOM()
{
this.NOGLMEBACNE();
}
// Token: 0x06029071 RID: 168049 RVA: 0x00B733EC File Offset: 0x00B715EC
private void PNHKJEHEPII()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029072 RID: 168050 RVA: 0x00B73424 File Offset: 0x00B71624
private void FHBFPCBIPNM()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1949f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[1];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-11));
}
// Token: 0x06029073 RID: 168051 RVA: 0x00B73530 File Offset: 0x00B71730
private void AIHNDJBIAIB()
{
if (GUI.Button(new Rect(1361f, (float)(Screen.height - 88), 1748f, 34f), "onupdateparams"))
{
this.NFBCNCDDLBL.KLDODDCBDHB();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.APFOMHGICEL();
}
}
// Token: 0x06029074 RID: 168052 RVA: 0x00B7358C File Offset: 0x00B7178C
private void JKFLOMBCKIL()
{
this.MFHGOLNLCPC();
}
// Token: 0x06029075 RID: 168053 RVA: 0x00B73594 File Offset: 0x00B71794
private void BOFMPPGNKAI()
{
this.MFHBIHGLJNM();
}
// Token: 0x06029076 RID: 168054 RVA: 0x00B7359C File Offset: 0x00B7179C
private void GJMKLIHPIOE()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029077 RID: 168055 RVA: 0x00B735D4 File Offset: 0x00B717D4
public void LDHJDFMOGNC()
{
if (!this.NFBCNCDDLBL.PLKGAIJDJMB())
{
return;
}
if (Input.GetMouseButtonDown(0) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.J)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 1599f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.EPLOIOJHGBP())
{
this.JGGMCENMPGE();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x06029078 RID: 168056 RVA: 0x00B736D0 File Offset: 0x00B718D0
private void MCLMBDOBLNJ()
{
this.MFHBIHGLJNM();
}
// Token: 0x06029079 RID: 168057 RVA: 0x00B736D8 File Offset: 0x00B718D8
private void AHPEEIJNLNG()
{
if (GUI.Button(new Rect(961f, (float)(Screen.height - -33), 216f, 837f), "You Hit "))
{
this.NFBCNCDDLBL.FKKLLJAIFIK();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.MFHBIHGLJNM();
}
}
// Token: 0x0602907A RID: 168058 RVA: 0x00B73734 File Offset: 0x00B71934
public bool BLCPDMAMKDF(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return false;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return true;
}
Mesh msh = component.msh;
int[] array = new int[1];
array[1] = msh.triangles[raycastHit.triangleIndex * 0];
array[1] = msh.triangles[raycastHit.triangleIndex * 7 + 1];
array[3] = msh.triangles[raycastHit.triangleIndex * 1 + 7];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602907B RID: 168059 RVA: 0x00B737F4 File Offset: 0x00B719F4
private void PDCMKOCMIIF()
{
this.DJDAOFJNHML();
}
// Token: 0x0602907C RID: 168060 RVA: 0x00B737FC File Offset: 0x00B719FC
private void GCEHDDAPNEF()
{
if (GUI.Button(new Rect(814f, (float)(Screen.height - -31), 397f, 1407f), "{0}v2/gifts"))
{
this.NFBCNCDDLBL.HDBFKOKNGON();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.KJGEIDJIPAJ();
}
}
// Token: 0x0602907D RID: 168061 RVA: 0x00B73858 File Offset: 0x00B71A58
private void LOOPJMIGOEI()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x0602907E RID: 168062 RVA: 0x00B73890 File Offset: 0x00B71A90
public bool EFFOAGMPJBI(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return true;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[5];
array[1] = msh.triangles[raycastHit.triangleIndex * 5];
array[1] = msh.triangles[raycastHit.triangleIndex * 4 + 0];
array[4] = msh.triangles[raycastHit.triangleIndex * 8 + 1];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x0602907F RID: 168063 RVA: 0x00B73950 File Offset: 0x00B71B50
private void DJDAOFJNHML()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029080 RID: 168064 RVA: 0x00B73988 File Offset: 0x00B71B88
private void LLNJIAEEHDF()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029082 RID: 168066 RVA: 0x00B739E0 File Offset: 0x00B71BE0
private void POEPIFLLDBN()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j++)
{
array[j] += vector.normalized * 1399f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[1];
array4[1] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-67));
}
// Token: 0x06029083 RID: 168067 RVA: 0x00B73AEC File Offset: 0x00B71CEC
private void HHBFKFKMNNF()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029084 RID: 168068 RVA: 0x00B73B24 File Offset: 0x00B71D24
public bool BHKGIIKHEBA(Vector3 IFJEHHMHOOM)
{
Ray ray = Camera.main.ScreenPointToRay(IFJEHHMHOOM);
RaycastHit raycastHit;
if (!Physics.Raycast(ray.origin, ray.direction, out raycastHit))
{
return true;
}
pb_Object component = raycastHit.transform.gameObject.GetComponent<pb_Object>();
if (component == null)
{
return false;
}
Mesh msh = component.msh;
int[] array = new int[3];
array[0] = msh.triangles[raycastHit.triangleIndex * 2];
array[0] = msh.triangles[raycastHit.triangleIndex * 6 + 1];
array[5] = msh.triangles[raycastHit.triangleIndex * 4 + 2];
int[] array2 = array;
this.NFBCNCDDLBL.JENPMJBNAGI = component;
return component.FaceWithTriangle(array2, out this.NFBCNCDDLBL.LMPPILJJOOO);
}
// Token: 0x06029085 RID: 168069 RVA: 0x00B73BE4 File Offset: 0x00B71DE4
private void GCILMNODKLN()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029086 RID: 168070 RVA: 0x00B73C1C File Offset: 0x00B71E1C
private void MICFHMAIGIB()
{
this.NFCKDIFGACD();
}
// Token: 0x06029087 RID: 168071 RVA: 0x00B73C24 File Offset: 0x00B71E24
private void MFHBIHGLJNM()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = true;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x06029088 RID: 168072 RVA: 0x00B73C5C File Offset: 0x00B71E5C
public void LateUpdate()
{
if (!this.NFBCNCDDLBL.DCDKLMOIMBK())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.LeftAlt)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 0f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.AJFBOLHPEJC())
{
this.MNPHJNPIKAC();
}
}
if (Input.GetMouseButtonUp(1) || Input.GetMouseButtonUp(0))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x06029089 RID: 168073 RVA: 0x00B73D58 File Offset: 0x00B71F58
private void EELFGJMBAHO()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 900f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)193);
}
// Token: 0x0602908A RID: 168074 RVA: 0x00B73E64 File Offset: 0x00B72064
private void NBKOCNGGEMI()
{
pb_Object pb_Object = pb_ShapeGenerator.CubeGenerator(Vector3.one);
pb_Object.gameObject.AddComponent<MeshCollider>().convex = false;
this.NFBCNCDDLBL = new RuntimeEdit.IMJNKPANOKH(pb_Object, null);
}
// Token: 0x0602908B RID: 168075 RVA: 0x00B73E9C File Offset: 0x00B7209C
public void DCDFMJJNKGG()
{
if (!this.NFBCNCDDLBL.AFDELNCAKMJ())
{
return;
}
if (Input.GetMouseButtonDown(1) || (Input.GetMouseButtonDown(0) && Input.GetKey(KeyCode.N)))
{
this.PILGLIGDLML = Input.mousePosition;
this.DGOHNFLLENM = true;
}
if (this.DGOHNFLLENM)
{
Vector2 vector = this.PILGLIGDLML - Input.mousePosition;
Vector3 vector2 = new Vector3(vector.y, vector.x, 727f);
this.NFBCNCDDLBL.JENPMJBNAGI.gameObject.transform.RotateAround(Vector3.zero, vector2, this.rotateSpeed * Time.deltaTime);
if (this.NFBCNCDDLBL.BMGJDMAJPML())
{
this.IFMECMGMIFO();
}
}
if (Input.GetMouseButtonUp(0) || Input.GetMouseButtonUp(1))
{
this.DGOHNFLLENM = false;
}
}
// Token: 0x0602908C RID: 168076 RVA: 0x00B73F98 File Offset: 0x00B72198
private void PEOCJICBGDJ()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 1; i < array2.Length; i += 0)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1906f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)(-65));
}
// Token: 0x0602908D RID: 168077 RVA: 0x00B740A4 File Offset: 0x00B722A4
private void FKHIDLAJLKK()
{
if (GUI.Button(new Rect(80f, (float)(Screen.height - 109), 460f, 1743f), "Open already called! You can't reuse this WebSocket instance!"))
{
this.NFBCNCDDLBL.OLDNJBLMJNC();
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
this.LOOPJMIGOEI();
}
}
// Token: 0x0602908E RID: 168078 RVA: 0x00B74100 File Offset: 0x00B72300
private void JGNMHGILILF()
{
Vector3[] array = this.NFBCNCDDLBL.JENPMJBNAGI.VerticesInWorldSpace(this.NFBCNCDDLBL.LMPPILJJOOO.indices);
int[] array2 = new int[array.Length];
for (int i = 0; i < array2.Length; i++)
{
array2[i] = i;
}
Vector3 vector = pb_Math.Normal(array);
for (int j = 0; j < array.Length; j += 0)
{
array[j] += vector.normalized * 1851f;
}
if (this.EMAABOLHEAC)
{
global::UnityEngine.Object.Destroy(this.EMAABOLHEAC.gameObject);
}
Vector3[] array3 = array;
pb_Face[] array4 = new pb_Face[0];
array4[0] = new pb_Face(array2);
this.EMAABOLHEAC = pb_Object.CreateInstanceWithVerticesFaces(array3, array4);
this.EMAABOLHEAC.SetFaceMaterial(this.EMAABOLHEAC.faces, this.previewMaterial);
this.EMAABOLHEAC.ToMesh();
this.EMAABOLHEAC.Refresh((RefreshMask)61);
}
// Token: 0x04006584 RID: 25988
private RuntimeEdit.IMJNKPANOKH NFBCNCDDLBL;
// Token: 0x04006585 RID: 25989
private RuntimeEdit.IMJNKPANOKH BGLNOICDIPE;
// Token: 0x04006586 RID: 25990
private pb_Object EMAABOLHEAC;
// Token: 0x04006587 RID: 25991
public Material previewMaterial;
// Token: 0x04006588 RID: 25992
private Vector2 PILGLIGDLML = Vector2.zero;
// Token: 0x04006589 RID: 25993
private bool DGOHNFLLENM;
// Token: 0x0400658A RID: 25994
public float rotateSpeed = 100f;
// Token: 0x0200127F RID: 4735
private class IMJNKPANOKH
{
// Token: 0x0602908F RID: 168079 RVA: 0x00B7420C File Offset: 0x00B7240C
public bool BMGJDMAJPML()
{
return !(this.JENPMJBNAGI != null) || this.LMPPILJJOOO != null;
}
// Token: 0x06029090 RID: 168080 RVA: 0x00B74230 File Offset: 0x00B72430
public bool MEPMDDCIONM(RuntimeEdit.IMJNKPANOKH AEACNPKCHLL)
{
return AEACNPKCHLL == null || !AEACNPKCHLL.EPLOIOJHGBP() || !(this.JENPMJBNAGI == AEACNPKCHLL.JENPMJBNAGI) || this.LMPPILJJOOO == AEACNPKCHLL.LMPPILJJOOO;
}
// Token: 0x06029091 RID: 168081 RVA: 0x00B7426C File Offset: 0x00B7246C
public virtual string JOCNHLKEDON()
{
return ("RpcOnFlagDrop" + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + "time" + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "Map: ")) : "Must use one of the pre-defined delay values (";
}
// Token: 0x06029092 RID: 168082 RVA: 0x00B742D0 File Offset: 0x00B724D0
public bool LECHMNOKMIK()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x06029093 RID: 168083 RVA: 0x00B742E0 File Offset: 0x00B724E0
public virtual string MCFBOOINHBJ()
{
return ("LightQualityOverride requires at least one specified override." + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + "AvatarItemDesc" + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "amount")) : "move_location_idle";
}
// Token: 0x06029094 RID: 168084 RVA: 0x00B74344 File Offset: 0x00B72544
public void KLDODDCBDHB()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x06029095 RID: 168085 RVA: 0x00B74368 File Offset: 0x00B72568
public void HDBFKOKNGON()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x06029096 RID: 168086 RVA: 0x00B7438C File Offset: 0x00B7258C
public bool NEMOCAGMENB()
{
return this.JENPMJBNAGI != null && this.LMPPILJJOOO == null;
}
// Token: 0x06029097 RID: 168087 RVA: 0x00B743B0 File Offset: 0x00B725B0
public bool NBHGNFNHNBF(RuntimeEdit.IMJNKPANOKH AEACNPKCHLL)
{
return AEACNPKCHLL == null || !AEACNPKCHLL.CBDINPGIBCP() || !(this.JENPMJBNAGI == AEACNPKCHLL.JENPMJBNAGI) || this.LMPPILJJOOO == AEACNPKCHLL.LMPPILJJOOO;
}
// Token: 0x06029098 RID: 168088 RVA: 0x00B743EC File Offset: 0x00B725EC
public void FKKLLJAIFIK()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x06029099 RID: 168089 RVA: 0x00B74410 File Offset: 0x00B72610
public bool AJFBOLHPEJC()
{
return this.JENPMJBNAGI != null && this.LMPPILJJOOO != null;
}
// Token: 0x0602909A RID: 168090 RVA: 0x00B74434 File Offset: 0x00B72634
public bool CBDINPGIBCP()
{
return !(this.JENPMJBNAGI != null) || this.LMPPILJJOOO != null;
}
// Token: 0x0602909B RID: 168091 RVA: 0x00B74458 File Offset: 0x00B72658
public bool NINBJLMCJNI(RuntimeEdit.IMJNKPANOKH AEACNPKCHLL)
{
return AEACNPKCHLL == null || !AEACNPKCHLL.EPLOIOJHGBP() || (this.JENPMJBNAGI == AEACNPKCHLL.JENPMJBNAGI && this.LMPPILJJOOO == AEACNPKCHLL.LMPPILJJOOO);
}
// Token: 0x0602909C RID: 168092 RVA: 0x00B74494 File Offset: 0x00B72694
public virtual string FEECEOBPLCG()
{
return ("HTTPResponse" + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + "Retake picture" + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "BSD")) : "CurrentLocalRotation";
}
// Token: 0x0602909D RID: 168093 RVA: 0x00B744F8 File Offset: 0x00B726F8
public bool JOHJDIAGJGI(RuntimeEdit.IMJNKPANOKH AEACNPKCHLL)
{
return AEACNPKCHLL != null && AEACNPKCHLL.AJFBOLHPEJC() && this.JENPMJBNAGI == AEACNPKCHLL.JENPMJBNAGI && this.LMPPILJJOOO == AEACNPKCHLL.LMPPILJJOOO;
}
// Token: 0x0602909E RID: 168094 RVA: 0x00B74534 File Offset: 0x00B72734
public void BOJJDIANCAI()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x0602909F RID: 168095 RVA: 0x00B74558 File Offset: 0x00B72758
public void JFCIOOHPLFJ()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x060290A0 RID: 168096 RVA: 0x00B7457C File Offset: 0x00B7277C
public bool AFDELNCAKMJ()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x060290A1 RID: 168097 RVA: 0x00B7458C File Offset: 0x00B7278C
public void OLDNJBLMJNC()
{
if (this.JENPMJBNAGI != null)
{
global::UnityEngine.Object.Destroy(this.JENPMJBNAGI.gameObject);
}
}
// Token: 0x060290A2 RID: 168098 RVA: 0x00B745B0 File Offset: 0x00B727B0
public override string ToString()
{
return ("pb_Object: " + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + "\npb_Face: " + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "Null")) : "Null";
}
// Token: 0x060290A3 RID: 168099 RVA: 0x00B74614 File Offset: 0x00B72814
public bool DCDKLMOIMBK()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x060290A4 RID: 168100 RVA: 0x00B74624 File Offset: 0x00B72824
public bool JGJNMKDOBML()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x060290A5 RID: 168101 RVA: 0x00B74634 File Offset: 0x00B72834
public virtual string KDONNNCOMPG()
{
return (" GameServer:" + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + " " + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "EMP DEFUSED")) : "Editor only.";
}
// Token: 0x060290A6 RID: 168102 RVA: 0x00B74698 File Offset: 0x00B72898
public IMJNKPANOKH(pb_Object BNLBMBCONKK, pb_Face EAPDNIFMCGP)
{
this.JENPMJBNAGI = BNLBMBCONKK;
this.LMPPILJJOOO = EAPDNIFMCGP;
}
// Token: 0x060290A7 RID: 168103 RVA: 0x00B746B0 File Offset: 0x00B728B0
public bool PLKGAIJDJMB()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x060290A8 RID: 168104 RVA: 0x00B746C0 File Offset: 0x00B728C0
public bool LIKJHCAGMGO()
{
return this.JENPMJBNAGI != null;
}
// Token: 0x060290A9 RID: 168105 RVA: 0x00B746D0 File Offset: 0x00B728D0
public bool EPLOIOJHGBP()
{
return !(this.JENPMJBNAGI != null) || this.LMPPILJJOOO != null;
}
// Token: 0x060290AA RID: 168106 RVA: 0x00B746F4 File Offset: 0x00B728F4
public bool CCFKNGJBFEJ(RuntimeEdit.IMJNKPANOKH AEACNPKCHLL)
{
return AEACNPKCHLL == null || !AEACNPKCHLL.NEMOCAGMENB() || (this.JENPMJBNAGI == AEACNPKCHLL.JENPMJBNAGI && this.LMPPILJJOOO == AEACNPKCHLL.LMPPILJJOOO);
}
// Token: 0x060290AB RID: 168107 RVA: 0x00B74730 File Offset: 0x00B72930
public virtual string PEHMABEMLDB()
{
return ("type" + this.JENPMJBNAGI != null) ? (this.JENPMJBNAGI.name + ":" + ((this.LMPPILJJOOO != null) ? this.LMPPILJJOOO.ToString() : "LnByb3RvIlQKDUV4dHJ1c2lvbkRhdGESQwoWc3ViRXh0cnVzaW9uQ29sbGVj")) : "c2lvbhgBIAEoBRI2ChBwZXJzaXN0ZW5jZVZpZXdzGAIgAygLMhwucmVjcm9v";
}
// Token: 0x0400658B RID: 25995
public pb_Object JENPMJBNAGI;
// Token: 0x0400658C RID: 25996
public pb_Face LMPPILJJOOO;
}
}
}