scripts
This commit is contained in:
@@ -0,0 +1,2344 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Valve.VR.InteractionSystem
|
||||
{
|
||||
// Token: 0x020005A2 RID: 1442
|
||||
[RequireComponent(typeof(Interactable))]
|
||||
public class CircularDrive : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600E497 RID: 58519 RVA: 0x00442328 File Offset: 0x00440528
|
||||
private void JLLBFBPDKPH()
|
||||
{
|
||||
this.KFINPBIMONI();
|
||||
this.AOBNEDCAKAH();
|
||||
this.IHKMBOKPPHD();
|
||||
}
|
||||
|
||||
// Token: 0x0600E498 RID: 58520 RVA: 0x0044233C File Offset: 0x0044053C
|
||||
private void BLCEPOJDOOK(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E499 RID: 58521 RVA: 0x004423B4 File Offset: 0x004405B4
|
||||
private void BKFMPHAHBEO(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.HideButtonHint(GAEKGDCFOJM, new LKMJJEMLLKJ[] { LKMJJEMLLKJ.k_EButton_Axis1 });
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.GetStandardInteractionButton())
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, 1f, 10));
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x0600E49A RID: 58522 RVA: 0x00442410 File Offset: 0x00440610
|
||||
private void KCHEAMGIELM()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 360f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.JDPPEABGDBG();
|
||||
}
|
||||
|
||||
// Token: 0x0600E49B RID: 58523 RVA: 0x0044247C File Offset: 0x0044067C
|
||||
private void NMFOKAGGDHA()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("{0} days {1} hours {2} minutes {3} seconds remaining", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E49C RID: 58524 RVA: 0x004424CC File Offset: 0x004406CC
|
||||
private void GFCOFMMHGJH()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E49D RID: 58525 RVA: 0x00442500 File Offset: 0x00440700
|
||||
private void CMGNJBFJBLL(Hand GAEKGDCFOJM)
|
||||
{
|
||||
Vector3 vector = this.LOCDCBBBMFJ(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (!vector.Equals(this.IPOCAGIMEPD))
|
||||
{
|
||||
float num = Vector3.Angle(this.IPOCAGIMEPD, vector);
|
||||
if (num > 186f)
|
||||
{
|
||||
if (this.GHKOCCOCIDB)
|
||||
{
|
||||
float sqrMagnitude = (GAEKGDCFOJM.hoverSphereTransform.position - this.FLAOIGMFLOJ).sqrMagnitude;
|
||||
if (sqrMagnitude > this.FJKGMINPJCJ.x)
|
||||
{
|
||||
this.outAngle = this.KLNACMPBDKG + global::UnityEngine.Random.Range(1294f, 19f);
|
||||
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(sqrMagnitude, this.FJKGMINPJCJ.x, this.FJKGMINPJCJ.y, 1691f, 123f);
|
||||
if (num2 > 183f)
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, num2, -115));
|
||||
}
|
||||
else
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, 464f, 17));
|
||||
}
|
||||
if (sqrMagnitude >= this.FJKGMINPJCJ.y)
|
||||
{
|
||||
this.onFrozenDistanceThreshold.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector3 normalized = Vector3.Cross(this.IPOCAGIMEPD, vector).normalized;
|
||||
float num3 = Vector3.Dot(this.HIHLEGGBFPO, normalized);
|
||||
float num4 = num;
|
||||
if (num3 < 148f)
|
||||
{
|
||||
num4 = -num4;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
float num5 = Mathf.Clamp(this.outAngle + num4, this.minAngle, this.maxAngle);
|
||||
if (this.outAngle == this.minAngle)
|
||||
{
|
||||
if (num5 > this.minAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (this.outAngle == this.maxAngle)
|
||||
{
|
||||
if (num5 < this.maxAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (num5 == this.minAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMinAngle.Invoke();
|
||||
if (this.freezeOnMin)
|
||||
{
|
||||
this.JDFKALBKFIJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else if (num5 == this.maxAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMaxAngle.Invoke();
|
||||
if (this.freezeOnMax)
|
||||
{
|
||||
this.DBMLCLMLKKC(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle += num4;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E49E RID: 58526 RVA: 0x004427B4 File Offset: 0x004409B4
|
||||
private void IKFNGDKIDJM(Hand GAEKGDCFOJM)
|
||||
{
|
||||
Vector3 vector = this.ONMCEBGDJAG(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (!vector.Equals(this.IPOCAGIMEPD))
|
||||
{
|
||||
float num = Vector3.Angle(this.IPOCAGIMEPD, vector);
|
||||
if (num > 0f)
|
||||
{
|
||||
if (this.GHKOCCOCIDB)
|
||||
{
|
||||
float sqrMagnitude = (GAEKGDCFOJM.hoverSphereTransform.position - this.FLAOIGMFLOJ).sqrMagnitude;
|
||||
if (sqrMagnitude > this.FJKGMINPJCJ.x)
|
||||
{
|
||||
this.outAngle = this.KLNACMPBDKG + global::UnityEngine.Random.Range(-1f, 1f);
|
||||
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(sqrMagnitude, this.FJKGMINPJCJ.x, this.FJKGMINPJCJ.y, 0f, 1f);
|
||||
if (num2 > 0f)
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, num2, 10));
|
||||
}
|
||||
else
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, 0.5f, 10));
|
||||
}
|
||||
if (sqrMagnitude >= this.FJKGMINPJCJ.y)
|
||||
{
|
||||
this.onFrozenDistanceThreshold.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector3 normalized = Vector3.Cross(this.IPOCAGIMEPD, vector).normalized;
|
||||
float num3 = Vector3.Dot(this.HIHLEGGBFPO, normalized);
|
||||
float num4 = num;
|
||||
if (num3 < 0f)
|
||||
{
|
||||
num4 = -num4;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
float num5 = Mathf.Clamp(this.outAngle + num4, this.minAngle, this.maxAngle);
|
||||
if (this.outAngle == this.minAngle)
|
||||
{
|
||||
if (num5 > this.minAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (this.outAngle == this.maxAngle)
|
||||
{
|
||||
if (num5 < this.maxAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (num5 == this.minAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMinAngle.Invoke();
|
||||
if (this.freezeOnMin)
|
||||
{
|
||||
this.JDFKALBKFIJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else if (num5 == this.maxAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMaxAngle.Invoke();
|
||||
if (this.freezeOnMax)
|
||||
{
|
||||
this.JDFKALBKFIJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle += num4;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E49F RID: 58527 RVA: 0x00442A68 File Offset: 0x00440C68
|
||||
private void AKEKNJNKMEG()
|
||||
{
|
||||
this.KCHEAMGIELM();
|
||||
this.GFCOFMMHGJH();
|
||||
this.JDPPEABGDBG();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A0 RID: 58528 RVA: 0x00442A7C File Offset: 0x00440C7C
|
||||
private void JDPPEABGDBG()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("Linear: {0}\nAngle: {1}\n", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A1 RID: 58529 RVA: 0x00442ACC File Offset: 0x00440CCC
|
||||
private Vector3 JAFBPAGNDJO(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(1509f, 1891f, 749f);
|
||||
if (normalized.sqrMagnitude > 36f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "VoiceFilter2";
|
||||
object[] array = new object[1];
|
||||
array[1] = base.gameObject.ToString();
|
||||
Debug.LogFormat(text, array);
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 0)
|
||||
{
|
||||
this.BDALADDLLOO(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A2 RID: 58530 RVA: 0x00442B78 File Offset: 0x00440D78
|
||||
private void DIFKEIMOFCH()
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.FLAOIGMFLOJ.Set(1449f, 1990f, 221f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A3 RID: 58531 RVA: 0x00442B9C File Offset: 0x00440D9C
|
||||
private IEnumerator HHLOJGJBEFF(PNLCMOFOFOH.OOPOGLBNJPF DKCHLCMACDK, float DDBHOBHOOOD, int BINCFCBCMED)
|
||||
{
|
||||
if (DKCHLCMACDK != null)
|
||||
{
|
||||
int num = (int)OFPFHHLNHIC.DKPCDKNIGLJ(DDBHOBHOOOD, 0f, 1f, 100f, 900f);
|
||||
BINCFCBCMED = Mathf.Clamp(BINCFCBCMED, 1, 10);
|
||||
ushort num2 = 0;
|
||||
while ((int)num2 < BINCFCBCMED)
|
||||
{
|
||||
ushort num3 = (ushort)global::UnityEngine.Random.Range(100, num);
|
||||
DKCHLCMACDK.BLAOIIFDDED(num3, LKMJJEMLLKJ.k_EButton_Axis0);
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
num2 += 1;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A4 RID: 58532 RVA: 0x00442BC8 File Offset: 0x00440DC8
|
||||
private void BDALADDLLOO(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("scale");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 1;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("Smile", (int)((1836f - this.DHDBOKLPBGG.r) * 471f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1454f, 564f, 1543f);
|
||||
gameObject.transform.localScale = new Vector3(1364f, 119f, 962f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 1677f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 771f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 1008f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("<b>Vector3:</b> ", (int)((1141f - this.BBADJLEJGLG.g) * 1610f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 514f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(98f, 1130f, 694f);
|
||||
gameObject.transform.localScale = new Vector3(1642f, 393f, 1387f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 204f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 125f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 133f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A5 RID: 58533 RVA: 0x00442EB0 File Offset: 0x004410B0
|
||||
private void PAODIABNBAA(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.KHPOGJNCGDA())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.OHFCLONBEIL(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.JFCEAEEPFCF(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.MEEFDPJIHFK(GAEKGDCFOJM);
|
||||
this.OOEKCFICMMH();
|
||||
ControllerButtonHints.KLEFIMEMKKK(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)70 });
|
||||
}
|
||||
else if (GAEKGDCFOJM.DPOCAHPFEMK())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.BLECLFPGFMG() && GAEKGDCFOJM.IMKDGCMLPGD() == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.MEEFDPJIHFK(GAEKGDCFOJM);
|
||||
this.JLLBFBPDKPH();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A6 RID: 58534 RVA: 0x00442F8C File Offset: 0x0044118C
|
||||
private void KAMFELGNGPC(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A7 RID: 58535 RVA: 0x00443004 File Offset: 0x00441204
|
||||
private void Start()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(0f, 0f, 0f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 1f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 0f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Left;
|
||||
this.debugText.anchor = TextAnchor.UpperLeft;
|
||||
}
|
||||
this.MCJGEBJHBLC();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A8 RID: 58536 RVA: 0x004431B0 File Offset: 0x004413B0
|
||||
private void NOFIJDDBKFB()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("update_avoid_junior_pref", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4A9 RID: 58537 RVA: 0x00443200 File Offset: 0x00441400
|
||||
private void JDFKALBKFIJ(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AA RID: 58538 RVA: 0x00443278 File Offset: 0x00441478
|
||||
private Vector3 OHFCLONBEIL(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(1866f, 89f, 729f);
|
||||
if (normalized.sqrMagnitude > 1178f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogFormat("Too many batches being sent. Skipping flush for now", new object[] { base.gameObject.ToString() });
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 1)
|
||||
{
|
||||
this.MCLBOKAIOOB(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AB RID: 58539 RVA: 0x00443324 File Offset: 0x00441524
|
||||
private void EDIGHKBAMHJ()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 1234f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.HFDMFJGCGLI();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AC RID: 58540 RVA: 0x00443390 File Offset: 0x00441590
|
||||
private void PIPBKBLKHLC(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.MGAKLNDFJFF())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.PBKFAFFHDJE(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.JFCEAEEPFCF(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.DLLEFHKHEOM(GAEKGDCFOJM);
|
||||
this.AKEKNJNKMEG();
|
||||
ControllerButtonHints.MKOOFPLOCNJ(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)(-112) });
|
||||
}
|
||||
else if (GAEKGDCFOJM.INENIOKNCJL())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.PCBHNDBJJDC(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.CHAFDDMCHNL() && GAEKGDCFOJM.MNJGGMPGLPF() == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.CMGNJBFJBLL(GAEKGDCFOJM);
|
||||
this.AKEKNJNKMEG();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AD RID: 58541 RVA: 0x0044346C File Offset: 0x0044166C
|
||||
private void GMJEIOBDEGD()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AE RID: 58542 RVA: 0x004434A0 File Offset: 0x004416A0
|
||||
private void BLJBNIDFHBH()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("Hole ", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4AF RID: 58543 RVA: 0x004434F0 File Offset: 0x004416F0
|
||||
private void KKNOEDOHFCD(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("STM_UTCG");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 1;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("{0}v1/update", (int)((667f - this.DHDBOKLPBGG.r) * 1884f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1209f, 41f, 1312f);
|
||||
gameObject.transform.localScale = new Vector3(775f, 1628f, 1099f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 406f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 793f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 939f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("UIConfirmationDialog.ShowDialog(): ScreenHeader not found", (int)((902f - this.BBADJLEJGLG.g) * 1557f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 915f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1768f, 242f, 154f);
|
||||
gameObject.transform.localScale = new Vector3(257f, 1470f, 250f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 45f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 1047f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 758f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B0 RID: 58544 RVA: 0x004437D8 File Offset: 0x004419D8
|
||||
private void EHEPHJDCIHJ(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B1 RID: 58545 RVA: 0x00443850 File Offset: 0x00441A50
|
||||
private Vector3 LOCDCBBBMFJ(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(76f, 1020f, 554f);
|
||||
if (normalized.sqrMagnitude > 915f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "/home ";
|
||||
object[] array = new object[0];
|
||||
array[0] = base.gameObject.ToString();
|
||||
Debug.LogFormat(text, array);
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 0)
|
||||
{
|
||||
this.OEMKMJEIKGM(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B2 RID: 58546 RVA: 0x004438FC File Offset: 0x00441AFC
|
||||
private void JGCIPANBMFN()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(1312f, 1700f, 1631f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 74f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 383f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Center;
|
||||
this.debugText.anchor = TextAnchor.UpperCenter;
|
||||
}
|
||||
this.AKEKNJNKMEG();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B3 RID: 58547 RVA: 0x00443AA8 File Offset: 0x00441CA8
|
||||
private Vector3 PBKFAFFHDJE(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(292f, 1f, 791f);
|
||||
if (normalized.sqrMagnitude > 505f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "EquipmentPrefabName";
|
||||
object[] array = new object[0];
|
||||
array[1] = base.gameObject.ToString();
|
||||
Debug.LogFormat(text, array);
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 0)
|
||||
{
|
||||
this.ELNNPNCGHEF(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B4 RID: 58548 RVA: 0x00443B54 File Offset: 0x00441D54
|
||||
private void OOEKCFICMMH()
|
||||
{
|
||||
this.HMDJGHKJGEK();
|
||||
this.GFCOFMMHGJH();
|
||||
this.HJNFEBLIHOF();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B5 RID: 58549 RVA: 0x00443B68 File Offset: 0x00441D68
|
||||
private void OACHHCILIBE(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.KHPOGJNCGDA())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.LJIAMHPOJDO(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.DGGNHAEBFJJ(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.BPJEABMAKNB(GAEKGDCFOJM);
|
||||
this.JLLBFBPDKPH();
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[0];
|
||||
array[1] = (LKMJJEMLLKJ)(-80);
|
||||
ControllerButtonHints.ABINFDAHIJL(GAEKGDCFOJM, array);
|
||||
}
|
||||
else if (GAEKGDCFOJM.INENIOKNCJL())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.GetStandardInteractionButton() && GAEKGDCFOJM.LBIMKIKKFCC == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.MEEFDPJIHFK(GAEKGDCFOJM);
|
||||
this.OOEKCFICMMH();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B6 RID: 58550 RVA: 0x00443C44 File Offset: 0x00441E44
|
||||
private void MCLBOKAIOOB(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("{0}.{1}: {2} -> {3}");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 0;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("TIMER", (int)((15f - this.DHDBOKLPBGG.r) * 572f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1758f, 1043f, 1894f);
|
||||
gameObject.transform.localScale = new Vector3(1937f, 963f, 1814f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 693f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 292f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 1243f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("Total", (int)((607f - this.BBADJLEJGLG.g) * 2f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 1913f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(500f, 1425f, 1629f);
|
||||
gameObject.transform.localScale = new Vector3(775f, 1130f, 839f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 144f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 216f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 1230f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 0) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B7 RID: 58551 RVA: 0x00443F2C File Offset: 0x0044212C
|
||||
private void BPJEABMAKNB(Hand GAEKGDCFOJM)
|
||||
{
|
||||
Vector3 vector = this.OHFCLONBEIL(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (!vector.Equals(this.IPOCAGIMEPD))
|
||||
{
|
||||
float num = Vector3.Angle(this.IPOCAGIMEPD, vector);
|
||||
if (num > 1090f)
|
||||
{
|
||||
if (this.GHKOCCOCIDB)
|
||||
{
|
||||
float sqrMagnitude = (GAEKGDCFOJM.hoverSphereTransform.position - this.FLAOIGMFLOJ).sqrMagnitude;
|
||||
if (sqrMagnitude > this.FJKGMINPJCJ.x)
|
||||
{
|
||||
this.outAngle = this.KLNACMPBDKG + global::UnityEngine.Random.Range(691f, 1217f);
|
||||
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(sqrMagnitude, this.FJKGMINPJCJ.x, this.FJKGMINPJCJ.y, 530f, 397f);
|
||||
if (num2 > 1145f)
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, num2, 72));
|
||||
}
|
||||
else
|
||||
{
|
||||
base.StartCoroutine(this.BMHOGKCJCDN(GAEKGDCFOJM.controller, 996f, -1));
|
||||
}
|
||||
if (sqrMagnitude >= this.FJKGMINPJCJ.y)
|
||||
{
|
||||
this.onFrozenDistanceThreshold.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector3 normalized = Vector3.Cross(this.IPOCAGIMEPD, vector).normalized;
|
||||
float num3 = Vector3.Dot(this.HIHLEGGBFPO, normalized);
|
||||
float num4 = num;
|
||||
if (num3 < 1981f)
|
||||
{
|
||||
num4 = -num4;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
float num5 = Mathf.Clamp(this.outAngle + num4, this.minAngle, this.maxAngle);
|
||||
if (this.outAngle == this.minAngle)
|
||||
{
|
||||
if (num5 > this.minAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (this.outAngle == this.maxAngle)
|
||||
{
|
||||
if (num5 < this.maxAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (num5 == this.minAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMinAngle.Invoke();
|
||||
if (this.freezeOnMin)
|
||||
{
|
||||
this.GFDDENOCDLC(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else if (num5 == this.maxAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMaxAngle.Invoke();
|
||||
if (this.freezeOnMax)
|
||||
{
|
||||
this.EHEPHJDCIHJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle += num4;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B8 RID: 58552 RVA: 0x004441E0 File Offset: 0x004423E0
|
||||
private void LBOMAEBOBHI(Hand GAEKGDCFOJM)
|
||||
{
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)53;
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4B9 RID: 58553 RVA: 0x004441F4 File Offset: 0x004423F4
|
||||
private void OJLPCEMALCA()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("Got it!", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BA RID: 58554 RVA: 0x00444244 File Offset: 0x00442444
|
||||
private void LHBFKILIFDL()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 1015f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.FKNOLCNNBHC();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BB RID: 58555 RVA: 0x004442B0 File Offset: 0x004424B0
|
||||
private void IBDJIHEMGMJ()
|
||||
{
|
||||
if (this.LFBCGANBFOI)
|
||||
{
|
||||
Hand lfbcganbfoi = this.LFBCGANBFOI;
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[0];
|
||||
array[1] = (LKMJJEMLLKJ)(-91);
|
||||
ControllerButtonHints.KLEFIMEMKKK(lfbcganbfoi, array);
|
||||
this.LFBCGANBFOI.HoverUnlock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BC RID: 58556 RVA: 0x004442F0 File Offset: 0x004424F0
|
||||
private void HAIDCELPKAK()
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.FLAOIGMFLOJ.Set(1024f, 426f, 738f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BD RID: 58557 RVA: 0x00444314 File Offset: 0x00442514
|
||||
private IEnumerator GDBNKCHKPFL(PNLCMOFOFOH.OOPOGLBNJPF DKCHLCMACDK, float DDBHOBHOOOD, int BINCFCBCMED)
|
||||
{
|
||||
if (DKCHLCMACDK != null)
|
||||
{
|
||||
num = (int)OFPFHHLNHIC.DKPCDKNIGLJ(DDBHOBHOOOD, 0f, 1f, 100f, 900f);
|
||||
BINCFCBCMED = Mathf.Clamp(BINCFCBCMED, 1, 10);
|
||||
num2 = 0;
|
||||
while ((int)num2 < BINCFCBCMED)
|
||||
{
|
||||
num3 = (ushort)global::UnityEngine.Random.Range(100, num);
|
||||
DKCHLCMACDK.BLAOIIFDDED(num3, LKMJJEMLLKJ.k_EButton_Axis0);
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
num2 += 1;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BE RID: 58558 RVA: 0x00444340 File Offset: 0x00442540
|
||||
private void DBMLCLMLKKC(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4BF RID: 58559 RVA: 0x004443B8 File Offset: 0x004425B8
|
||||
private void CHKKJIFJHJC(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C0 RID: 58560 RVA: 0x00444430 File Offset: 0x00442630
|
||||
private void KICOGJOGJKL()
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.FLAOIGMFLOJ.Set(523f, 1000f, 1108f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C1 RID: 58561 RVA: 0x00444454 File Offset: 0x00442654
|
||||
private Vector3 ONMCEBGDJAG(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(0f, 0f, 0f);
|
||||
if (normalized.sqrMagnitude > 0f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogFormat("The collider needs to be a minimum distance away from the CircularDrive GameObject {0}", new object[] { base.gameObject.ToString() });
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 0)
|
||||
{
|
||||
this.OEMKMJEIKGM(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C2 RID: 58562 RVA: 0x00444500 File Offset: 0x00442700
|
||||
private void HMDJGHKJGEK()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 1433f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.IHKMBOKPPHD();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C3 RID: 58563 RVA: 0x0044456C File Offset: 0x0044276C
|
||||
private void ELGEMGKGCMB(Hand GAEKGDCFOJM)
|
||||
{
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)(-47);
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C4 RID: 58564 RVA: 0x00444580 File Offset: 0x00442780
|
||||
private void LAMIPDJGNMK(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.ONMCEBGDJAG(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.IKFNGDKIDJM(GAEKGDCFOJM);
|
||||
this.MCJGEBJHBLC();
|
||||
ControllerButtonHints.HideButtonHint(GAEKGDCFOJM, new LKMJJEMLLKJ[] { LKMJJEMLLKJ.k_EButton_Axis1 });
|
||||
}
|
||||
else if (GAEKGDCFOJM.GetStandardInteractionButtonUp())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.GetStandardInteractionButton() && GAEKGDCFOJM.LBIMKIKKFCC == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.IKFNGDKIDJM(GAEKGDCFOJM);
|
||||
this.MCJGEBJHBLC();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C5 RID: 58565 RVA: 0x0044465C File Offset: 0x0044285C
|
||||
private void OIJHKFIHFEK()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("OnPhotonRandomJoinFailed() was called by PUN. No random room available, so we create one. Calling: PhotonNetwork.CreateRoom(null, new RoomOptions() {maxPlayers = 4}, null);", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C6 RID: 58566 RVA: 0x004446AC File Offset: 0x004428AC
|
||||
private void FBFNILAJEDJ(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C7 RID: 58567 RVA: 0x00444724 File Offset: 0x00442924
|
||||
private void OEMKMJEIKGM(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("Circular Drive Debug");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 0;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("actual_{0}", (int)((1f - this.DHDBOKLPBGG.r) * 10f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(0f, 0f, 0f);
|
||||
gameObject.transform.localScale = new Vector3(0.004f, 0.004f, 0.004f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 0.1f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 0.1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 1f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("projed_{0}", (int)((1f - this.BBADJLEJGLG.g) * 10f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 0.25f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(0f, 0f, 0f);
|
||||
gameObject.transform.localScale = new Vector3(0.004f, 0.004f, 0.004f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 0.1f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 0.1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 1f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C8 RID: 58568 RVA: 0x00444A0C File Offset: 0x00442C0C
|
||||
private void KFINPBIMONI()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 264f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.GLKNMEGONJK();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4C9 RID: 58569 RVA: 0x00444A78 File Offset: 0x00442C78
|
||||
private void LLCBMPEFHNK()
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.FLAOIGMFLOJ.Set(0f, 0f, 0f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CA RID: 58570 RVA: 0x00444A9C File Offset: 0x00442C9C
|
||||
private void HJNFEBLIHOF()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("Rec Room update required", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CB RID: 58571 RVA: 0x00444AEC File Offset: 0x00442CEC
|
||||
private void OnDisable()
|
||||
{
|
||||
if (this.LFBCGANBFOI)
|
||||
{
|
||||
ControllerButtonHints.HideButtonHint(this.LFBCGANBFOI, new LKMJJEMLLKJ[] { LKMJJEMLLKJ.k_EButton_Axis1 });
|
||||
this.LFBCGANBFOI.HoverUnlock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CC RID: 58572 RVA: 0x00444B2C File Offset: 0x00442D2C
|
||||
private void NICOCLOFMEF()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(1165f, 199f, 2f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 169f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 1123f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Left;
|
||||
this.debugText.anchor = TextAnchor.UpperLeft;
|
||||
}
|
||||
this.JLLBFBPDKPH();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CD RID: 58573 RVA: 0x00444CD8 File Offset: 0x00442ED8
|
||||
private void HFDMFJGCGLI()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("cause", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CE RID: 58574 RVA: 0x00444D28 File Offset: 0x00442F28
|
||||
private void AOBNEDCAKAH()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4CF RID: 58575 RVA: 0x00444D5C File Offset: 0x00442F5C
|
||||
private Vector3 LJIAMHPOJDO(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(1106f, 1948f, 263f);
|
||||
if (normalized.sqrMagnitude > 85f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "OpJoinLobby()";
|
||||
object[] array = new object[0];
|
||||
array[0] = base.gameObject.ToString();
|
||||
Debug.LogFormat(text, array);
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 0)
|
||||
{
|
||||
this.ELNNPNCGHEF(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D0 RID: 58576 RVA: 0x00444E08 File Offset: 0x00443008
|
||||
private void LNHKBMCCNFA(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = true;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D1 RID: 58577 RVA: 0x00444E80 File Offset: 0x00443080
|
||||
private void GLKNMEGONJK()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("long:", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D2 RID: 58578 RVA: 0x00444ED0 File Offset: 0x004430D0
|
||||
private void BJCBPBAENEE(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.PBKFAFFHDJE(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.DGGNHAEBFJJ(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.MEEFDPJIHFK(GAEKGDCFOJM);
|
||||
this.MCJGEBJHBLC();
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[0];
|
||||
array[1] = (LKMJJEMLLKJ)119;
|
||||
ControllerButtonHints.JFJAGJAGEDK(GAEKGDCFOJM, array);
|
||||
}
|
||||
else if (GAEKGDCFOJM.GetStandardInteractionButtonUp())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.PHJNALOLENH(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.BLECLFPGFMG() && GAEKGDCFOJM.DMENGGIKKHD() == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.IKFNGDKIDJM(GAEKGDCFOJM);
|
||||
this.MCJGEBJHBLC();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D3 RID: 58579 RVA: 0x00444FAC File Offset: 0x004431AC
|
||||
private void ELNNPNCGHEF(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("^name can only contain letters and numbers!");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 0;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("Reset", (int)((1651f - this.DHDBOKLPBGG.r) * 1269f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(265f, 1778f, 1514f);
|
||||
gameObject.transform.localScale = new Vector3(1296f, 304f, 472f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 484f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 1526f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 1784f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("ACT_EQ", (int)((1399f - this.BBADJLEJGLG.g) * 1314f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 365f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1560f, 1113f, 463f);
|
||||
gameObject.transform.localScale = new Vector3(87f, 977f, 1273f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 1054f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 1018f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 184f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D4 RID: 58580 RVA: 0x00445294 File Offset: 0x00443494
|
||||
private void IBHHHAADOBB(Hand GAEKGDCFOJM)
|
||||
{
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)95;
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D5 RID: 58581 RVA: 0x004452A8 File Offset: 0x004434A8
|
||||
private void NNNAKMENIBJ(Hand GAEKGDCFOJM)
|
||||
{
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[0];
|
||||
array[1] = (LKMJJEMLLKJ)(-70);
|
||||
ControllerButtonHints.OPILIBPACDP(GAEKGDCFOJM, array);
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.BLECLFPGFMG())
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, 1563f, -3));
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D6 RID: 58582 RVA: 0x00445304 File Offset: 0x00443504
|
||||
private void KOKOKCHBFPP()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(1350f, 167f, 1015f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 1564f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 1045f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Left;
|
||||
this.debugText.anchor = TextAnchor.UpperLeft;
|
||||
}
|
||||
this.FIOKDNLBGJA();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D7 RID: 58583 RVA: 0x004454B0 File Offset: 0x004436B0
|
||||
private void JHADHCFAJMB(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.OLKLLBBKJNB(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)(-78) });
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.CHAFDDMCHNL())
|
||||
{
|
||||
base.StartCoroutine(this.GDBNKCHKPFL(GAEKGDCFOJM.controller, 82f, 52));
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D8 RID: 58584 RVA: 0x0044550C File Offset: 0x0044370C
|
||||
private IEnumerator KGCIKDODLCD(PNLCMOFOFOH.OOPOGLBNJPF DKCHLCMACDK, float DDBHOBHOOOD, int BINCFCBCMED)
|
||||
{
|
||||
if (DKCHLCMACDK != null)
|
||||
{
|
||||
num = (int)OFPFHHLNHIC.DKPCDKNIGLJ(DDBHOBHOOOD, 0f, 1f, 100f, 900f);
|
||||
BINCFCBCMED = Mathf.Clamp(BINCFCBCMED, 1, 10);
|
||||
num2 = 0;
|
||||
while ((int)num2 < BINCFCBCMED)
|
||||
{
|
||||
num3 = (ushort)global::UnityEngine.Random.Range(100, num);
|
||||
DKCHLCMACDK.BLAOIIFDDED(num3, LKMJJEMLLKJ.k_EButton_Axis0);
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
num2 += 1;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4D9 RID: 58585 RVA: 0x00445538 File Offset: 0x00443738
|
||||
private IEnumerator JOEAJEELFFF(PNLCMOFOFOH.OOPOGLBNJPF DKCHLCMACDK, float DDBHOBHOOOD, int BINCFCBCMED)
|
||||
{
|
||||
if (DKCHLCMACDK != null)
|
||||
{
|
||||
num = (int)OFPFHHLNHIC.DKPCDKNIGLJ(DDBHOBHOOOD, 0f, 1f, 100f, 900f);
|
||||
BINCFCBCMED = Mathf.Clamp(BINCFCBCMED, 1, 10);
|
||||
num2 = 0;
|
||||
while ((int)num2 < BINCFCBCMED)
|
||||
{
|
||||
num3 = (ushort)global::UnityEngine.Random.Range(100, num);
|
||||
DKCHLCMACDK.BLAOIIFDDED(num3, LKMJJEMLLKJ.k_EButton_Axis0);
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
num2 += 1;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DA RID: 58586 RVA: 0x00445564 File Offset: 0x00443764
|
||||
private void IGMJLDCIMLB()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DB RID: 58587 RVA: 0x00445598 File Offset: 0x00443798
|
||||
private void IHKMBOKPPHD()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("name", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DC RID: 58588 RVA: 0x004455E8 File Offset: 0x004437E8
|
||||
private void LAFNOPOOJEC()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DD RID: 58589 RVA: 0x0044561C File Offset: 0x0044381C
|
||||
private void PBMJMCBOAID(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, new LKMJJEMLLKJ[] { LKMJJEMLLKJ.k_EButton_Axis1 });
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DE RID: 58590 RVA: 0x00445630 File Offset: 0x00443830
|
||||
private void EFJNIONMLPA()
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.FLAOIGMFLOJ.Set(1243f, 573f, 1017f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4DF RID: 58591 RVA: 0x00445654 File Offset: 0x00443854
|
||||
private IEnumerator BMHOGKCJCDN(PNLCMOFOFOH.OOPOGLBNJPF DKCHLCMACDK, float DDBHOBHOOOD, int BINCFCBCMED)
|
||||
{
|
||||
if (DKCHLCMACDK != null)
|
||||
{
|
||||
num = (int)OFPFHHLNHIC.DKPCDKNIGLJ(DDBHOBHOOOD, 0f, 1f, 100f, 900f);
|
||||
BINCFCBCMED = Mathf.Clamp(BINCFCBCMED, 1, 10);
|
||||
num2 = 0;
|
||||
while ((int)num2 < BINCFCBCMED)
|
||||
{
|
||||
num3 = (ushort)global::UnityEngine.Random.Range(100, num);
|
||||
DKCHLCMACDK.BLAOIIFDDED(num3, LKMJJEMLLKJ.k_EButton_Axis0);
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
num2 += 1;
|
||||
}
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E0 RID: 58592 RVA: 0x00445680 File Offset: 0x00443880
|
||||
private void NLKEGBACBOK(Hand GAEKGDCFOJM)
|
||||
{
|
||||
if (GAEKGDCFOJM.GetStandardInteractionButtonDown())
|
||||
{
|
||||
this.IPOCAGIMEPD = this.OHFCLONBEIL(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.HoverLock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = GAEKGDCFOJM;
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.DLLEFHKHEOM(GAEKGDCFOJM);
|
||||
this.OOEKCFICMMH();
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)10;
|
||||
ControllerButtonHints.OLKLLBBKJNB(GAEKGDCFOJM, array);
|
||||
}
|
||||
else if (GAEKGDCFOJM.DPOCAHPFEMK())
|
||||
{
|
||||
if (this.hoverLock)
|
||||
{
|
||||
GAEKGDCFOJM.HoverUnlock(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
else if (this.JBCKGDPFIHN && GAEKGDCFOJM.BLECLFPGFMG() && GAEKGDCFOJM.FLGCLKHKFBF() == base.GetComponent<Interactable>())
|
||||
{
|
||||
this.MEEFDPJIHFK(GAEKGDCFOJM);
|
||||
this.OOEKCFICMMH();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E1 RID: 58593 RVA: 0x0044575C File Offset: 0x0044395C
|
||||
private void CDMAFNFENKP(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.OLKLLBBKJNB(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)26 });
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.BLECLFPGFMG())
|
||||
{
|
||||
base.StartCoroutine(this.HHLOJGJBEFF(GAEKGDCFOJM.controller, 1227f, 101));
|
||||
}
|
||||
this.JBCKGDPFIHN = false;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E2 RID: 58594 RVA: 0x004457B8 File Offset: 0x004439B8
|
||||
private Vector3 DEIJFOCCLJC(Transform CHOLCPLJJPO)
|
||||
{
|
||||
Vector3 normalized = (CHOLCPLJJPO.position - base.transform.position).normalized;
|
||||
Vector3 normalized2 = new Vector3(786f, 29f, 67f);
|
||||
if (normalized.sqrMagnitude > 1815f)
|
||||
{
|
||||
normalized2 = Vector3.ProjectOnPlane(normalized, this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
else
|
||||
{
|
||||
string text = "col";
|
||||
object[] array = new object[1];
|
||||
array[1] = base.gameObject.ToString();
|
||||
Debug.LogFormat(text, array);
|
||||
}
|
||||
if (this.debugPath && this.dbgPathLimit > 1)
|
||||
{
|
||||
this.OEMKMJEIKGM(CHOLCPLJJPO, normalized2);
|
||||
}
|
||||
return normalized2;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E3 RID: 58595 RVA: 0x00445864 File Offset: 0x00443A64
|
||||
private void DEMMEIEPEMC()
|
||||
{
|
||||
if (this.rotateGameObject)
|
||||
{
|
||||
base.transform.localRotation = this.OBELJCEMDHP * Quaternion.AngleAxis(this.outAngle, this.KIGJPKEBAPI);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E4 RID: 58596 RVA: 0x00445898 File Offset: 0x00443A98
|
||||
private void NEOEKCJCKGP()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(142f, 1193f, 392f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 124f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 1184f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Center;
|
||||
this.debugText.anchor = TextAnchor.UpperLeft;
|
||||
}
|
||||
this.JLLBFBPDKPH();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E5 RID: 58597 RVA: 0x00445A44 File Offset: 0x00443C44
|
||||
private void BGPIGIGABOF(Hand GAEKGDCFOJM)
|
||||
{
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)124;
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, array);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E6 RID: 58598 RVA: 0x00445A58 File Offset: 0x00443C58
|
||||
private void EOHNKJEHLDD()
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.FLAOIGMFLOJ.Set(12f, 1669f, 1897f);
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E7 RID: 58599 RVA: 0x00445A7C File Offset: 0x00443C7C
|
||||
private void FIOKDNLBGJA()
|
||||
{
|
||||
this.KCHEAMGIELM();
|
||||
this.LAFNOPOOJEC();
|
||||
this.JDPPEABGDBG();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E8 RID: 58600 RVA: 0x00445A90 File Offset: 0x00443C90
|
||||
private void FKNOLCNNBHC()
|
||||
{
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.text = string.Format("Best region found in PlayerPrefs. Connecting to: ", this.linearMapping.value, this.outAngle);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4E9 RID: 58601 RVA: 0x00445AE0 File Offset: 0x00443CE0
|
||||
private void NBIGGANPOAA()
|
||||
{
|
||||
if (this.LFBCGANBFOI)
|
||||
{
|
||||
Hand lfbcganbfoi = this.LFBCGANBFOI;
|
||||
LKMJJEMLLKJ[] array = new LKMJJEMLLKJ[1];
|
||||
array[1] = (LKMJJEMLLKJ)118;
|
||||
ControllerButtonHints.ABINFDAHIJL(lfbcganbfoi, array);
|
||||
this.LFBCGANBFOI.PCBHNDBJJDC(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4EA RID: 58602 RVA: 0x00445B20 File Offset: 0x00443D20
|
||||
private void ELDIGJDCNLF()
|
||||
{
|
||||
if (this.LFBCGANBFOI)
|
||||
{
|
||||
ControllerButtonHints.KLEFIMEMKKK(this.LFBCGANBFOI, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)41 });
|
||||
this.LFBCGANBFOI.PHJNALOLENH(base.GetComponent<Interactable>());
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4EB RID: 58603 RVA: 0x00445B60 File Offset: 0x00443D60
|
||||
private void ECNFHJNBNGM(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("HTTPResponse");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 1;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format(" party members)", (int)((109f - this.DHDBOKLPBGG.r) * 1041f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1925f, 59f, 1105f);
|
||||
gameObject.transform.localScale = new Vector3(248f, 1945f, 1440f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 759f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 1806f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 1214f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("USAGE: renderScale <float>", (int)((1693f - this.BBADJLEJGLG.g) * 1856f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 1281f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(966f, 1595f, 491f);
|
||||
gameObject.transform.localScale = new Vector3(1093f, 1695f, 20f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 785f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 1338f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 420f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4EC RID: 58604 RVA: 0x00445E48 File Offset: 0x00444048
|
||||
private void DAIOIEPHKMP(Transform CHOLCPLJJPO, Vector3 PHJIDGNECED)
|
||||
{
|
||||
if (this.KDCKFJCKENN == 0)
|
||||
{
|
||||
this.NHDKBMPMAKG = new GameObject("Ignoring Connect() because app gets closed. If this is an error, check PhotonHandler.AppQuits.");
|
||||
this.KFFPJCHJJEF = new GameObject[this.dbgPathLimit];
|
||||
this.CKFBAGABFFG = new GameObject[this.dbgPathLimit];
|
||||
this.KDCKFJCKENN = this.dbgPathLimit;
|
||||
this.AFBGHGAICIE = 1;
|
||||
}
|
||||
GameObject gameObject;
|
||||
if (this.KFFPJCHJJEF[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.KFFPJCHJJEF[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.KFFPJCHJJEF[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("Oculus Utilities version ", (int)((1357f - this.DHDBOKLPBGG.r) * 1250f));
|
||||
gameObject.transform.position = CHOLCPLJJPO.position;
|
||||
gameObject.transform.rotation = Quaternion.Euler(1196f, 1861f, 0f);
|
||||
gameObject.transform.localScale = new Vector3(1929f, 590f, 7f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.DHDBOKLPBGG;
|
||||
if (this.DHDBOKLPBGG.r > 1732f)
|
||||
{
|
||||
this.DHDBOKLPBGG.r = this.DHDBOKLPBGG.r - 1476f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DHDBOKLPBGG.r = 241f;
|
||||
}
|
||||
if (this.CKFBAGABFFG[this.AFBGHGAICIE])
|
||||
{
|
||||
gameObject = this.CKFBAGABFFG[this.AFBGHGAICIE];
|
||||
}
|
||||
else
|
||||
{
|
||||
gameObject = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||
gameObject.transform.SetParent(this.NHDKBMPMAKG.transform);
|
||||
this.CKFBAGABFFG[this.AFBGHGAICIE] = gameObject;
|
||||
}
|
||||
gameObject.name = string.Format("Name Updated!", (int)((47f - this.BBADJLEJGLG.g) * 225f));
|
||||
gameObject.transform.position = base.transform.position + PHJIDGNECED * 499f;
|
||||
gameObject.transform.rotation = Quaternion.Euler(865f, 536f, 73f);
|
||||
gameObject.transform.localScale = new Vector3(1938f, 1225f, 1404f);
|
||||
gameObject.gameObject.GetComponent<Renderer>().material.color = this.BBADJLEJGLG;
|
||||
if (this.BBADJLEJGLG.g > 1334f)
|
||||
{
|
||||
this.BBADJLEJGLG.g = this.BBADJLEJGLG.g - 859f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BBADJLEJGLG.g = 1741f;
|
||||
}
|
||||
this.AFBGHGAICIE = (this.AFBGHGAICIE + 1) % this.KDCKFJCKENN;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4ED RID: 58605 RVA: 0x00446130 File Offset: 0x00444330
|
||||
private void NIJDIMACOND()
|
||||
{
|
||||
if (this.limited)
|
||||
{
|
||||
this.linearMapping.value = (this.outAngle - this.minAngle) / (this.maxAngle - this.minAngle);
|
||||
}
|
||||
else
|
||||
{
|
||||
float num = this.outAngle / 113f;
|
||||
this.linearMapping.value = num - Mathf.Floor(num);
|
||||
}
|
||||
this.FKNOLCNNBHC();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4EE RID: 58606 RVA: 0x0044619C File Offset: 0x0044439C
|
||||
private void GFDDENOCDLC(Hand GAEKGDCFOJM)
|
||||
{
|
||||
this.GHKOCCOCIDB = false;
|
||||
this.KLNACMPBDKG = this.outAngle;
|
||||
this.FLAOIGMFLOJ = GAEKGDCFOJM.hoverSphereTransform.position;
|
||||
this.FJKGMINPJCJ.x = this.frozenDistanceMinMaxThreshold.x * this.frozenDistanceMinMaxThreshold.x;
|
||||
this.FJKGMINPJCJ.y = this.frozenDistanceMinMaxThreshold.y * this.frozenDistanceMinMaxThreshold.y;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4EF RID: 58607 RVA: 0x00446214 File Offset: 0x00444414
|
||||
private void DLLEFHKHEOM(Hand GAEKGDCFOJM)
|
||||
{
|
||||
Vector3 vector = this.JAFBPAGNDJO(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (!vector.Equals(this.IPOCAGIMEPD))
|
||||
{
|
||||
float num = Vector3.Angle(this.IPOCAGIMEPD, vector);
|
||||
if (num > 314f)
|
||||
{
|
||||
if (this.GHKOCCOCIDB)
|
||||
{
|
||||
float sqrMagnitude = (GAEKGDCFOJM.hoverSphereTransform.position - this.FLAOIGMFLOJ).sqrMagnitude;
|
||||
if (sqrMagnitude > this.FJKGMINPJCJ.x)
|
||||
{
|
||||
this.outAngle = this.KLNACMPBDKG + global::UnityEngine.Random.Range(1581f, 935f);
|
||||
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(sqrMagnitude, this.FJKGMINPJCJ.x, this.FJKGMINPJCJ.y, 312f, 1083f);
|
||||
if (num2 > 1784f)
|
||||
{
|
||||
base.StartCoroutine(this.BMHOGKCJCDN(GAEKGDCFOJM.controller, num2, -80));
|
||||
}
|
||||
else
|
||||
{
|
||||
base.StartCoroutine(this.HHLOJGJBEFF(GAEKGDCFOJM.controller, 624f, 0));
|
||||
}
|
||||
if (sqrMagnitude >= this.FJKGMINPJCJ.y)
|
||||
{
|
||||
this.onFrozenDistanceThreshold.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector3 normalized = Vector3.Cross(this.IPOCAGIMEPD, vector).normalized;
|
||||
float num3 = Vector3.Dot(this.HIHLEGGBFPO, normalized);
|
||||
float num4 = num;
|
||||
if (num3 < 965f)
|
||||
{
|
||||
num4 = -num4;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
float num5 = Mathf.Clamp(this.outAngle + num4, this.minAngle, this.maxAngle);
|
||||
if (this.outAngle == this.minAngle)
|
||||
{
|
||||
if (num5 > this.minAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (this.outAngle == this.maxAngle)
|
||||
{
|
||||
if (num5 < this.maxAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (num5 == this.minAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMinAngle.Invoke();
|
||||
if (this.freezeOnMin)
|
||||
{
|
||||
this.JDFKALBKFIJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else if (num5 == this.maxAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMaxAngle.Invoke();
|
||||
if (this.freezeOnMax)
|
||||
{
|
||||
this.BLCEPOJDOOK(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle += num4;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F0 RID: 58608 RVA: 0x004464C8 File Offset: 0x004446C8
|
||||
private void MCJGEBJHBLC()
|
||||
{
|
||||
this.KCHEAMGIELM();
|
||||
this.AOBNEDCAKAH();
|
||||
this.JDPPEABGDBG();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F1 RID: 58609 RVA: 0x004464DC File Offset: 0x004446DC
|
||||
private void JIEMDHBPENO(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.ShowButtonHint(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)(-22) });
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F2 RID: 58610 RVA: 0x004464F0 File Offset: 0x004446F0
|
||||
private void MEEFDPJIHFK(Hand GAEKGDCFOJM)
|
||||
{
|
||||
Vector3 vector = this.JAFBPAGNDJO(GAEKGDCFOJM.hoverSphereTransform);
|
||||
if (!vector.Equals(this.IPOCAGIMEPD))
|
||||
{
|
||||
float num = Vector3.Angle(this.IPOCAGIMEPD, vector);
|
||||
if (num > 728f)
|
||||
{
|
||||
if (this.GHKOCCOCIDB)
|
||||
{
|
||||
float sqrMagnitude = (GAEKGDCFOJM.hoverSphereTransform.position - this.FLAOIGMFLOJ).sqrMagnitude;
|
||||
if (sqrMagnitude > this.FJKGMINPJCJ.x)
|
||||
{
|
||||
this.outAngle = this.KLNACMPBDKG + global::UnityEngine.Random.Range(158f, 1724f);
|
||||
float num2 = OFPFHHLNHIC.DKPCDKNIGLJ(sqrMagnitude, this.FJKGMINPJCJ.x, this.FJKGMINPJCJ.y, 1733f, 471f);
|
||||
if (num2 > 613f)
|
||||
{
|
||||
base.StartCoroutine(this.GDBNKCHKPFL(GAEKGDCFOJM.controller, num2, -7));
|
||||
}
|
||||
else
|
||||
{
|
||||
base.StartCoroutine(this.BMHOGKCJCDN(GAEKGDCFOJM.controller, 1037f, -28));
|
||||
}
|
||||
if (sqrMagnitude >= this.FJKGMINPJCJ.y)
|
||||
{
|
||||
this.onFrozenDistanceThreshold.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector3 normalized = Vector3.Cross(this.IPOCAGIMEPD, vector).normalized;
|
||||
float num3 = Vector3.Dot(this.HIHLEGGBFPO, normalized);
|
||||
float num4 = num;
|
||||
if (num3 < 623f)
|
||||
{
|
||||
num4 = -num4;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
float num5 = Mathf.Clamp(this.outAngle + num4, this.minAngle, this.maxAngle);
|
||||
if (this.outAngle == this.minAngle)
|
||||
{
|
||||
if (num5 > this.minAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (this.outAngle == this.maxAngle)
|
||||
{
|
||||
if (num5 < this.maxAngle && num < this.PLOMHDKDEHP)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else if (num5 == this.minAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMinAngle.Invoke();
|
||||
if (this.freezeOnMin)
|
||||
{
|
||||
this.DBMLCLMLKKC(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else if (num5 == this.maxAngle)
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
this.onMaxAngle.Invoke();
|
||||
if (this.freezeOnMax)
|
||||
{
|
||||
this.EHEPHJDCIHJ(GAEKGDCFOJM);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle = num5;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.outAngle += num4;
|
||||
this.IPOCAGIMEPD = vector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F3 RID: 58611 RVA: 0x004467A4 File Offset: 0x004449A4
|
||||
private void ODFHFFEGPMP(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.OPILIBPACDP(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)(-125) });
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.CHAFDDMCHNL())
|
||||
{
|
||||
base.StartCoroutine(this.JOEAJEELFFF(GAEKGDCFOJM.controller, 1983f, 25));
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F5 RID: 58613 RVA: 0x004468F0 File Offset: 0x00444AF0
|
||||
private void GCHFDKPMNEE()
|
||||
{
|
||||
if (this.childCollider == null)
|
||||
{
|
||||
this.childCollider = base.GetComponentInChildren<Collider>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.GetComponent<LinearMapping>();
|
||||
}
|
||||
if (this.linearMapping == null)
|
||||
{
|
||||
this.linearMapping = base.gameObject.AddComponent<LinearMapping>();
|
||||
}
|
||||
this.HIHLEGGBFPO = new Vector3(1807f, 66f, 904f);
|
||||
this.HIHLEGGBFPO[(int)this.axisOfRotation] = 1860f;
|
||||
this.KIGJPKEBAPI = this.HIHLEGGBFPO;
|
||||
if (base.transform.parent)
|
||||
{
|
||||
this.HIHLEGGBFPO = base.transform.parent.localToWorldMatrix.MultiplyVector(this.HIHLEGGBFPO).normalized;
|
||||
}
|
||||
if (this.limited)
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.identity;
|
||||
this.outAngle = base.transform.localEulerAngles[(int)this.axisOfRotation];
|
||||
if (this.forceStart)
|
||||
{
|
||||
this.outAngle = Mathf.Clamp(this.startAngle, this.minAngle, this.maxAngle);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.OBELJCEMDHP = Quaternion.AngleAxis(base.transform.localEulerAngles[(int)this.axisOfRotation], this.KIGJPKEBAPI);
|
||||
this.outAngle = 1208f;
|
||||
}
|
||||
if (this.debugText)
|
||||
{
|
||||
this.debugText.alignment = TextAlignment.Center;
|
||||
this.debugText.anchor = TextAnchor.UpperCenter;
|
||||
}
|
||||
this.MCJGEBJHBLC();
|
||||
}
|
||||
|
||||
// Token: 0x0600E4F6 RID: 58614 RVA: 0x00446A9C File Offset: 0x00444C9C
|
||||
private void CFLKNGNHGAD(Hand GAEKGDCFOJM)
|
||||
{
|
||||
ControllerButtonHints.MKOOFPLOCNJ(GAEKGDCFOJM, new LKMJJEMLLKJ[] { (LKMJJEMLLKJ)65 });
|
||||
if (this.JBCKGDPFIHN && GAEKGDCFOJM.HMHAGBJPDOE())
|
||||
{
|
||||
base.StartCoroutine(this.BMHOGKCJCDN(GAEKGDCFOJM.controller, 1245f, -27));
|
||||
}
|
||||
this.JBCKGDPFIHN = true;
|
||||
this.LFBCGANBFOI = null;
|
||||
}
|
||||
|
||||
// Token: 0x04002112 RID: 8466
|
||||
[Tooltip("The axis around which the circular drive will rotate in local space")]
|
||||
public CircularDrive.CJFOEKOJGMF axisOfRotation;
|
||||
|
||||
// Token: 0x04002113 RID: 8467
|
||||
[Tooltip("Child GameObject which has the Collider component to initiate interaction, only needs to be set if there is more than one Collider child")]
|
||||
public Collider childCollider;
|
||||
|
||||
// Token: 0x04002114 RID: 8468
|
||||
[Tooltip("A LinearMapping component to drive, if not specified one will be dynamically added to this GameObject")]
|
||||
public LinearMapping linearMapping;
|
||||
|
||||
// Token: 0x04002115 RID: 8469
|
||||
[Tooltip("If true, the drive will stay manipulating as long as the button is held down, if false, it will stop if the controller moves out of the collider")]
|
||||
public bool hoverLock;
|
||||
|
||||
// Token: 0x04002116 RID: 8470
|
||||
[Header("Limited Rotation")]
|
||||
[Tooltip("If true, the rotation will be limited to [minAngle, maxAngle], if false, the rotation is unlimited")]
|
||||
public bool limited;
|
||||
|
||||
// Token: 0x04002117 RID: 8471
|
||||
public Vector2 frozenDistanceMinMaxThreshold = new Vector2(0.1f, 0.2f);
|
||||
|
||||
// Token: 0x04002118 RID: 8472
|
||||
public UnityEvent onFrozenDistanceThreshold;
|
||||
|
||||
// Token: 0x04002119 RID: 8473
|
||||
[Header("Limited Rotation Min")]
|
||||
[Tooltip("If limited is true, the specifies the lower limit, otherwise value is unused")]
|
||||
public float minAngle = -45f;
|
||||
|
||||
// Token: 0x0400211A RID: 8474
|
||||
[Tooltip("If limited, set whether drive will freeze its angle when the min angle is reached")]
|
||||
public bool freezeOnMin;
|
||||
|
||||
// Token: 0x0400211B RID: 8475
|
||||
[Tooltip("If limited, event invoked when minAngle is reached")]
|
||||
public UnityEvent onMinAngle;
|
||||
|
||||
// Token: 0x0400211C RID: 8476
|
||||
[Tooltip("If limited is true, the specifies the upper limit, otherwise value is unused")]
|
||||
[Header("Limited Rotation Max")]
|
||||
public float maxAngle = 45f;
|
||||
|
||||
// Token: 0x0400211D RID: 8477
|
||||
[Tooltip("If limited, set whether drive will freeze its angle when the max angle is reached")]
|
||||
public bool freezeOnMax;
|
||||
|
||||
// Token: 0x0400211E RID: 8478
|
||||
[Tooltip("If limited, event invoked when maxAngle is reached")]
|
||||
public UnityEvent onMaxAngle;
|
||||
|
||||
// Token: 0x0400211F RID: 8479
|
||||
[Tooltip("If limited is true, this forces the starting angle to be startAngle, clamped to [minAngle, maxAngle]")]
|
||||
public bool forceStart;
|
||||
|
||||
// Token: 0x04002120 RID: 8480
|
||||
[Tooltip("If limited is true and forceStart is true, the starting angle will be this, clamped to [minAngle, maxAngle]")]
|
||||
public float startAngle;
|
||||
|
||||
// Token: 0x04002121 RID: 8481
|
||||
[Tooltip("If true, the transform of the GameObject this component is on will be rotated accordingly")]
|
||||
public bool rotateGameObject = true;
|
||||
|
||||
// Token: 0x04002122 RID: 8482
|
||||
[Tooltip("If true, the path of the Hand (red) and the projected value (green) will be drawn")]
|
||||
public bool debugPath;
|
||||
|
||||
// Token: 0x04002123 RID: 8483
|
||||
[Tooltip("If debugPath is true, this is the maximum number of GameObjects to create to draw the path")]
|
||||
public int dbgPathLimit = 50;
|
||||
|
||||
// Token: 0x04002124 RID: 8484
|
||||
[Tooltip("If not null, the TextMesh will display the linear value and the angular value of this circular drive")]
|
||||
public TextMesh debugText;
|
||||
|
||||
// Token: 0x04002125 RID: 8485
|
||||
[Tooltip("The output angle value of the drive in degrees, unlimited will increase or decrease without bound, take the 360 modulus to find number of rotations")]
|
||||
public float outAngle;
|
||||
|
||||
// Token: 0x04002126 RID: 8486
|
||||
private Quaternion OBELJCEMDHP;
|
||||
|
||||
// Token: 0x04002127 RID: 8487
|
||||
private Vector3 HIHLEGGBFPO = new Vector3(1f, 0f, 0f);
|
||||
|
||||
// Token: 0x04002128 RID: 8488
|
||||
private Vector3 KIGJPKEBAPI = new Vector3(1f, 0f, 0f);
|
||||
|
||||
// Token: 0x04002129 RID: 8489
|
||||
private Vector3 IPOCAGIMEPD;
|
||||
|
||||
// Token: 0x0400212A RID: 8490
|
||||
private Color DHDBOKLPBGG = new Color(1f, 0f, 0f);
|
||||
|
||||
// Token: 0x0400212B RID: 8491
|
||||
private Color BBADJLEJGLG = new Color(0f, 1f, 0f);
|
||||
|
||||
// Token: 0x0400212C RID: 8492
|
||||
private GameObject[] KFFPJCHJJEF;
|
||||
|
||||
// Token: 0x0400212D RID: 8493
|
||||
private GameObject[] CKFBAGABFFG;
|
||||
|
||||
// Token: 0x0400212E RID: 8494
|
||||
private GameObject NHDKBMPMAKG;
|
||||
|
||||
// Token: 0x0400212F RID: 8495
|
||||
private int KDCKFJCKENN;
|
||||
|
||||
// Token: 0x04002130 RID: 8496
|
||||
private int AFBGHGAICIE;
|
||||
|
||||
// Token: 0x04002131 RID: 8497
|
||||
private bool JBCKGDPFIHN;
|
||||
|
||||
// Token: 0x04002132 RID: 8498
|
||||
private float PLOMHDKDEHP = 1f;
|
||||
|
||||
// Token: 0x04002133 RID: 8499
|
||||
private bool GHKOCCOCIDB;
|
||||
|
||||
// Token: 0x04002134 RID: 8500
|
||||
private float KLNACMPBDKG;
|
||||
|
||||
// Token: 0x04002135 RID: 8501
|
||||
private Vector3 FLAOIGMFLOJ = new Vector3(0f, 0f, 0f);
|
||||
|
||||
// Token: 0x04002136 RID: 8502
|
||||
private Vector2 FJKGMINPJCJ = new Vector2(0f, 0f);
|
||||
|
||||
// Token: 0x04002137 RID: 8503
|
||||
private Hand LFBCGANBFOI;
|
||||
|
||||
// Token: 0x020005A3 RID: 1443
|
||||
public enum CJFOEKOJGMF
|
||||
{
|
||||
// Token: 0x04002139 RID: 8505
|
||||
XAxis,
|
||||
// Token: 0x0400213A RID: 8506
|
||||
YAxis,
|
||||
// Token: 0x0400213B RID: 8507
|
||||
ZAxis
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user