2506 lines
83 KiB
C#
2506 lines
83 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|