1940 lines
58 KiB
C#
1940 lines
58 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Diagnostics;
|
|
using System.Threading;
|
|
using RecNet;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x020001A3 RID: 419
|
|
public class RoomCalibration : MonoBehaviour
|
|
{
|
|
// Token: 0x06005409 RID: 21513 RVA: 0x00199748 File Offset: 0x00197948
|
|
private void FNAFAMDBJHJ()
|
|
{
|
|
if (this.HAHNIBHNNII != this.KMGEBLJHGMO() && this.KMGEBLJHGMO() != RoomCalibration.NCJJNMHNFHE.Invalid)
|
|
{
|
|
this.HFDDMLDFBDP();
|
|
this.HAHNIBHNNII = this.HPCKCOBKJLK;
|
|
bool flag = this.HPCKCOBKJLK != RoomCalibration.NCJJNMHNFHE.Started || Player.LocalPlayerExists;
|
|
if (this.playerlessHands != null)
|
|
{
|
|
this.playerlessHands.SetActive(flag);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600540A RID: 21514 RVA: 0x001997BC File Offset: 0x001979BC
|
|
public static void HLEAKHKDEGP(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0600540C RID: 21516 RVA: 0x0019981C File Offset: 0x00197A1C
|
|
private void ELMDLBHIDOK()
|
|
{
|
|
Vector3 position = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position;
|
|
Vector3 vector = RoomCalibration.KOEOCKGELHK();
|
|
this.trackerGizmo.transform.position = vector;
|
|
Vector3 vector2 = vector - SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition;
|
|
vector2.y = 494f;
|
|
this.roomCenterIndicator.transform.position = vector2;
|
|
if (this.HPCKCOBKJLK == (RoomCalibration.NCJJNMHNFHE)7)
|
|
{
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
}
|
|
else if (this.HAHNIBHNNII == RoomCalibration.NCJJNMHNFHE.Verification && this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600540D RID: 21517 RVA: 0x001998E0 File Offset: 0x00197AE0
|
|
private void BBEONKNAFEB()
|
|
{
|
|
this.FNAFAMDBJHJ();
|
|
if (this.LDDDLHNPOCA())
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.IHDINPKDMMD())
|
|
{
|
|
this.GHMMDDGAEHH();
|
|
}
|
|
else if (this.JPBNJJLLGED)
|
|
{
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
else if (this.ABBMNJGMODF > 1126f && (this.NHBNICDHECL() || this.FAKLFHIEOMP))
|
|
{
|
|
this.DEINGFAFJGG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600540E RID: 21518 RVA: 0x00199964 File Offset: 0x00197B64
|
|
private void MMLNEAKFLNF()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1918f && (this.NHBNICDHECL() || this.OAGCAIPDKOI()))
|
|
{
|
|
float num = (this.GPOEPKEJLPC().transform.position - this.KIHBKMEOMKO().transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 1135f);
|
|
this.LDDHMBIIBGP(num);
|
|
this.LCFMDGJGFAH((RoomCalibration.NCJJNMHNFHE)7);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600540F RID: 21519 RVA: 0x001999EC File Offset: 0x00197BEC
|
|
private void ILLOOBBKLNE()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.PHNHEMGDNOL)
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.IHDINPKDMMD())
|
|
{
|
|
this.ABFLNNDFMNP();
|
|
}
|
|
else if (this.JPBNJJLLGED)
|
|
{
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
else if (this.ABBMNJGMODF > 1381f && (this.NHBNICDHECL() || this.OAGCAIPDKOI()))
|
|
{
|
|
this.DEINGFAFJGG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005410 RID: 21520 RVA: 0x00199A70 File Offset: 0x00197C70
|
|
private void MBGEJHOBNJG()
|
|
{
|
|
CameraStartPoint.ABAODNDLEGB(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition - Vector3.up * this.manualHeightAdjustIncrement, false);
|
|
this.GDFHOMFMMBC(this.BLIDKBGBBJH - this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x06005411 RID: 21521 RVA: 0x00199AB0 File Offset: 0x00197CB0
|
|
private void KMNFNMHBBCK()
|
|
{
|
|
this.FNAFAMDBJHJ();
|
|
if (this.ABBMNJGMODF > 434f && (this.NHBNICDHECL() || this.OAGCAIPDKOI()))
|
|
{
|
|
if (this.BMDEELHFOAN != null)
|
|
{
|
|
this.BMDEELHFOAN.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (this.MFJEALMMELA() != null)
|
|
{
|
|
this.MFJEALMMELA().JBKNLCIIKJK(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.GFPCOHDFDEF() != null)
|
|
{
|
|
RecRoomSceneManager.LEILGOOHEOI().HAFLJEFPGMG((PGOPAPIFECA)(-85), KANCFPONEKJ.ANY_LEVEL, true, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005412 RID: 21522 RVA: 0x00199B54 File Offset: 0x00197D54
|
|
private void Update()
|
|
{
|
|
if (this.HPCKCOBKJLK != RoomCalibration.NCJJNMHNFHE.Finished)
|
|
{
|
|
this.LBKEANHHNMD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005414 RID: 21524 RVA: 0x00199BA0 File Offset: 0x00197DA0
|
|
public static void EEOKMBDPOKD(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x06005415 RID: 21525 RVA: 0x00199BD4 File Offset: 0x00197DD4
|
|
private void JMCHEOIJDCM(float BPGKKPHLLGC)
|
|
{
|
|
this.BLIDKBGBBJH = BPGKKPHLLGC;
|
|
this.OBANDBIAKOB = this.BLIDKBGBBJH - this.LDFEHELBGAO.y;
|
|
CameraStartPoint.EEHALFOCBNP(new Vector3(-this.LDFEHELBGAO.x, this.OBANDBIAKOB, -this.LDFEHELBGAO.z), true);
|
|
if (this.heightMetersText != null)
|
|
{
|
|
this.heightMetersText.text = string.Format("{0}v1/balance", this.BLIDKBGBBJH);
|
|
}
|
|
if (this.heightFeetText != null)
|
|
{
|
|
float num = 786f;
|
|
float num2 = this.BLIDKBGBBJH * num;
|
|
int num3 = (int)num2;
|
|
float num4 = num2 - (float)num3;
|
|
int num5 = (int)(1124f * num4 + 79f);
|
|
if (num5 >= 55)
|
|
{
|
|
num3 += 0;
|
|
num5 %= 0;
|
|
}
|
|
this.heightFeetText.text = string.Format("_FrustumApex", num3, num5);
|
|
}
|
|
if (this.cameraHeightMetersText != null)
|
|
{
|
|
this.cameraHeightMetersText.text = string.Format("UploadStream", this.OBANDBIAKOB);
|
|
}
|
|
if (this.cameraHeightFeetText != null)
|
|
{
|
|
float num6 = 728f;
|
|
float num7 = this.OBANDBIAKOB * num6;
|
|
int num8 = (int)num7;
|
|
float num9 = num7 - (float)num8;
|
|
int num10 = (int)(1012f * num9 + 1082f);
|
|
if (num10 >= 41)
|
|
{
|
|
num8 += 0;
|
|
num10 %= 41;
|
|
}
|
|
this.cameraHeightFeetText.text = string.Format("&qt", num8, num10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005416 RID: 21526 RVA: 0x00199D74 File Offset: 0x00197F74
|
|
private bool EIOHPAMCPFH()
|
|
{
|
|
return (this.AMDGMOONBND() && this.KIHBKMEOMKO().NKDPEKCDFHM()) || !this.GLHBOBLDJBB() || this.GPOEPKEJLPC().GNOJOKAOOKP;
|
|
}
|
|
|
|
// Token: 0x06005417 RID: 21527 RVA: 0x00199DB0 File Offset: 0x00197FB0
|
|
public static Vector3 HKIFMLOHJKM()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position - RoomCalibration.LCNLDDLNCFP();
|
|
}
|
|
|
|
// Token: 0x06005418 RID: 21528 RVA: 0x00199DD0 File Offset: 0x00197FD0
|
|
private bool IFIBDMHJKHF()
|
|
{
|
|
return !(this.BMDEELHFOAN != null) || this.BMDEELHFOAN.KCIDGDPHEKH();
|
|
}
|
|
|
|
// Token: 0x06005419 RID: 21529 RVA: 0x00199DF4 File Offset: 0x00197FF4
|
|
private void EJLDILGKGFE()
|
|
{
|
|
if (this.HAHNIBHNNII != this.HPCKCOBKJLK && this.KMGEBLJHGMO() != RoomCalibration.NCJJNMHNFHE.Invalid)
|
|
{
|
|
this.DHHKCBJEKEE();
|
|
this.HAHNIBHNNII = this.KMGEBLJHGMO();
|
|
bool flag = this.HPCKCOBKJLK != RoomCalibration.NCJJNMHNFHE.Started || !Player.LocalPlayerExists;
|
|
if (this.playerlessHands != null)
|
|
{
|
|
this.playerlessHands.SetActive(flag);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600541A RID: 21530 RVA: 0x00199E68 File Offset: 0x00198068
|
|
public void UpdateInstructionsForCurrentState()
|
|
{
|
|
RoomCalibration.CalibrationInstruction calibrationInstruction = this.OAIKBOIPGIG(this.HPCKCOBKJLK);
|
|
if (this.instructionText != null)
|
|
{
|
|
this.instructionText.text = calibrationInstruction.instructionText;
|
|
}
|
|
if (this.instructionImage != null)
|
|
{
|
|
this.instructionImage.sprite = calibrationInstruction.instructionSprite;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600541B RID: 21531 RVA: 0x00199EC8 File Offset: 0x001980C8
|
|
public static void OBAGLINNOAL(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0600541C RID: 21532 RVA: 0x00199EFC File Offset: 0x001980FC
|
|
private ControllerIO JBENLBOMNDH()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.AAJLDBOOGIM;
|
|
}
|
|
|
|
// Token: 0x0600541D RID: 21533 RVA: 0x00199F08 File Offset: 0x00198108
|
|
private bool GEHNMBKAKDI()
|
|
{
|
|
return !this.BNDEPNDFCOE || this.JFLGEBGKFDJ.MBIDCPPKKHE;
|
|
}
|
|
|
|
// Token: 0x0600541E RID: 21534 RVA: 0x00199F24 File Offset: 0x00198124
|
|
public static Vector3 KOEOCKGELHK()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position - RoomCalibration.LCNLDDLNCFP();
|
|
}
|
|
|
|
// Token: 0x0600541F RID: 21535 RVA: 0x00199F44 File Offset: 0x00198144
|
|
public void JNIPGKCMFDK(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 173f)
|
|
{
|
|
this.ABFLNNDFMNP();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000189 RID: 393
|
|
// (get) Token: 0x06005466 RID: 21606 RVA: 0x0019B6E4 File Offset: 0x001998E4
|
|
// (set) Token: 0x06005420 RID: 21536 RVA: 0x00199F5C File Offset: 0x0019815C
|
|
private RoomCalibration.NCJJNMHNFHE HPCKCOBKJLK
|
|
{
|
|
get
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
set
|
|
{
|
|
this.IHLGIDABOLB = value;
|
|
this.ABBMNJGMODF = 0f;
|
|
if (this.instructionsAnimator != null)
|
|
{
|
|
this.instructionsAnimator.SetTrigger("Spin");
|
|
}
|
|
else
|
|
{
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005421 RID: 21537 RVA: 0x00199F9C File Offset: 0x0019819C
|
|
private bool PDHDCFGAFCK()
|
|
{
|
|
return !(this.GPOEPKEJLPC() != null) || this.BMDEELHFOAN.KCIDGDPHEKH();
|
|
}
|
|
|
|
// Token: 0x06005422 RID: 21538 RVA: 0x00199FC0 File Offset: 0x001981C0
|
|
public void KOHOHDFGLIO()
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.LCNLDDLNCFP();
|
|
this.DHHKCBJEKEE();
|
|
}
|
|
|
|
// Token: 0x06005423 RID: 21539 RVA: 0x00199FD4 File Offset: 0x001981D4
|
|
private void HCFENIOPLEM()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1266f && (this.GOAEELJHBJA || this.OAGCAIPDKOI()))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.LCNLDDLNCFP();
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000193 RID: 403
|
|
// (get) Token: 0x06005424 RID: 21540 RVA: 0x0019A014 File Offset: 0x00198214
|
|
private bool ECHAEKLPJCG
|
|
{
|
|
get
|
|
{
|
|
return (this.BNDEPNDFCOE && this.JFLGEBGKFDJ.GNOJOKAOOKP) || (this.LKNAHNJKKGC && this.BMDEELHFOAN.GNOJOKAOOKP);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005425 RID: 21541 RVA: 0x0019A050 File Offset: 0x00198250
|
|
private void HLBHPDENNBH()
|
|
{
|
|
if (this.HPCKCOBKJLK != RoomCalibration.NCJJNMHNFHE.Height)
|
|
{
|
|
this.AMKBJJFHDCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005426 RID: 21542 RVA: 0x0019A064 File Offset: 0x00198264
|
|
public static bool CDAFCDJEEII()
|
|
{
|
|
return RoomCalibration.KEHNIHKHJMH() && PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_STATE_PREF) && PlayerPrefs.GetInt(RoomCalibration.CALIBRATION_STATE_PREF) < 8;
|
|
}
|
|
|
|
// Token: 0x06005427 RID: 21543 RVA: 0x0019A094 File Offset: 0x00198294
|
|
private void CAEKEEKGEJD()
|
|
{
|
|
CameraStartPoint.UpdateOffset(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition - Vector3.up * this.manualHeightAdjustIncrement, false);
|
|
this.BMEDEEFMBPE(this.BLIDKBGBBJH - this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x06005428 RID: 21544 RVA: 0x0019A0D4 File Offset: 0x001982D4
|
|
private void BKBFIGCPIMI()
|
|
{
|
|
if (this.HAHNIBHNNII != this.HPCKCOBKJLK && this.HPCKCOBKJLK != RoomCalibration.NCJJNMHNFHE.Invalid)
|
|
{
|
|
this.HFDDMLDFBDP();
|
|
this.HAHNIBHNNII = this.HPCKCOBKJLK;
|
|
bool flag = this.HPCKCOBKJLK == RoomCalibration.NCJJNMHNFHE.Verification && !Player.LocalPlayerExists;
|
|
if (this.playerlessHands != null)
|
|
{
|
|
this.playerlessHands.SetActive(flag);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005429 RID: 21545 RVA: 0x0019A148 File Offset: 0x00198348
|
|
private void GMBFJHIHJFB()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
if (RoomCalibration.FPJMAEECGDD)
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Height;
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.KGLKKGGLMLK() != null)
|
|
{
|
|
RecRoomSceneManager.LEILGOOHEOI().PCIPMFHFGHB((PGOPAPIFECA)(-82), KANCFPONEKJ.DORM_ROOM, true, true);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x0600542A RID: 21546 RVA: 0x0019A1D0 File Offset: 0x001983D0
|
|
private void BOJIJOBCHKC()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.PHNHEMGDNOL)
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.ECHAEKLPJCG)
|
|
{
|
|
this.ABFLNNDFMNP();
|
|
}
|
|
else if (this.CECIGGOLLCB())
|
|
{
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
else if (this.ABBMNJGMODF > 1198f && (this.NHBNICDHECL() || this.FAKLFHIEOMP))
|
|
{
|
|
this.BECELAHEHBO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600542B RID: 21547 RVA: 0x0019A254 File Offset: 0x00198454
|
|
public void JMONFAKKBMG(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 29f)
|
|
{
|
|
this.GHMMDDGAEHH();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600542C RID: 21548 RVA: 0x0019A26C File Offset: 0x0019846C
|
|
public static Vector3 LCNLDDLNCFP()
|
|
{
|
|
return Vector3.zero;
|
|
}
|
|
|
|
// Token: 0x0600542D RID: 21549 RVA: 0x0019A280 File Offset: 0x00198480
|
|
private bool LBJNJOCFLME()
|
|
{
|
|
return !(this.GLKGFLFDPCL() != null) || this.GLKGFLFDPCL().KCIDGDPHEKH();
|
|
}
|
|
|
|
// Token: 0x0600542E RID: 21550 RVA: 0x0019A2A4 File Offset: 0x001984A4
|
|
private void PGLAIJNAAAP()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1802f && (this.GOAEELJHBJA || this.GEHNMBKAKDI()))
|
|
{
|
|
if (this.GLKGFLFDPCL() != null)
|
|
{
|
|
this.GPOEPKEJLPC().JBKNLCIIKJK(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (this.JFLGEBGKFDJ != null)
|
|
{
|
|
this.MFJEALMMELA().HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Calibration;
|
|
}
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.KGLKKGGLMLK() != null)
|
|
{
|
|
RecRoomSceneManager.LEILGOOHEOI().SwitchActivity((PGOPAPIFECA)(-135), KANCFPONEKJ.DORM_ROOM, false, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600542F RID: 21551 RVA: 0x0019A348 File Offset: 0x00198548
|
|
private void GAAHCNEOJLB()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.LDDDLHNPOCA())
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.ECHAEKLPJCG)
|
|
{
|
|
this.PMBEFDMOHDG();
|
|
}
|
|
else if (this.CECIGGOLLCB())
|
|
{
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
else if (this.ABBMNJGMODF > 343f && (this.NHBNICDHECL() || this.OAGCAIPDKOI()))
|
|
{
|
|
this.DEINGFAFJGG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x1400001D RID: 29
|
|
// (add) Token: 0x06005468 RID: 21608 RVA: 0x0019B6F8 File Offset: 0x001998F8
|
|
// (remove) Token: 0x06005430 RID: 21552 RVA: 0x0019A3CC File Offset: 0x001985CC
|
|
[field: DebuggerBrowsable(DebuggerBrowsableState.Never)]
|
|
public static event Action CCKMBGEAGAM;
|
|
|
|
// Token: 0x06005431 RID: 21553 RVA: 0x0019A400 File Offset: 0x00198600
|
|
private void JKAGPIOPOHG()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 2f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
float num = (this.BMDEELHFOAN.transform.position - this.JFLGEBGKFDJ.transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 1f);
|
|
this.BMEDEEFMBPE(num);
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Verification;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005432 RID: 21554 RVA: 0x0019A488 File Offset: 0x00198688
|
|
private bool LDDDLHNPOCA()
|
|
{
|
|
return (this.AMDGMOONBND() && this.JBENLBOMNDH().NFBPPEPPJPB) || !this.LBJNJOCFLME() || this.BMDEELHFOAN.NFBPPEPPJPB;
|
|
}
|
|
|
|
// Token: 0x06005433 RID: 21555 RVA: 0x0019A4C4 File Offset: 0x001986C4
|
|
private IEnumerator KCMPJDOBKAH()
|
|
{
|
|
SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.transform.position = Vector3.zero;
|
|
SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.transform.rotation = Quaternion.identity;
|
|
yield return null;
|
|
yield return null;
|
|
this.HFDDMLDFBDP();
|
|
yield break;
|
|
}
|
|
|
|
// Token: 0x06005434 RID: 21556 RVA: 0x0019A4E0 File Offset: 0x001986E0
|
|
private void BFIFAIBNCAJ()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1686f && (this.NHBNICDHECL() || this.OAGCAIPDKOI()))
|
|
{
|
|
if (this.GLKGFLFDPCL() != null)
|
|
{
|
|
this.GPOEPKEJLPC().JBKNLCIIKJK(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (this.JFLGEBGKFDJ != null)
|
|
{
|
|
this.MFJEALMMELA().JBKNLCIIKJK(ControllerIO.KJJKAFNOLLL.Calibration);
|
|
}
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.KGLKKGGLMLK() != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.OLIBGMFHNIG((PGOPAPIFECA)96, KANCFPONEKJ.DORM_ROOM, false, true);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005435 RID: 21557 RVA: 0x0019A584 File Offset: 0x00198784
|
|
public void RecenterPlayarea()
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.HFDDMLDFBDP();
|
|
}
|
|
|
|
// Token: 0x06005436 RID: 21558 RVA: 0x0019A598 File Offset: 0x00198798
|
|
private void PBCNFAEFEEO()
|
|
{
|
|
if (this.KMGEBLJHGMO() != RoomCalibration.NCJJNMHNFHE.ConfirmStanding)
|
|
{
|
|
this.AMKBJJFHDCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005437 RID: 21559 RVA: 0x0019A5AC File Offset: 0x001987AC
|
|
private void ADIACLLHALL()
|
|
{
|
|
this.FNAFAMDBJHJ();
|
|
if (this.ABBMNJGMODF > 1364f && (this.GOAEELJHBJA || this.GEHNMBKAKDI()))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005438 RID: 21560 RVA: 0x0019A5EC File Offset: 0x001987EC
|
|
private ControllerIO GPOEPKEJLPC()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.CKKHCDNOAHJ;
|
|
}
|
|
|
|
// Token: 0x06005439 RID: 21561 RVA: 0x0019A5F8 File Offset: 0x001987F8
|
|
private void DEINGFAFJGG()
|
|
{
|
|
RoomCalibration.SaveRoomCalibration();
|
|
this.JIPIFEDADDH((RoomCalibration.NCJJNMHNFHE)6);
|
|
}
|
|
|
|
// Token: 0x0600543A RID: 21562 RVA: 0x0019A608 File Offset: 0x00198808
|
|
private void GHMMDDGAEHH()
|
|
{
|
|
CameraStartPoint.ALJDOEEOIJM(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition - Vector3.up * this.manualHeightAdjustIncrement, false);
|
|
this.LJEIGPFAENA(this.BLIDKBGBBJH - this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x0600543B RID: 21563 RVA: 0x0019A648 File Offset: 0x00198848
|
|
private void MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.ABBMNJGMODF = 320f;
|
|
if (this.instructionsAnimator != null)
|
|
{
|
|
this.instructionsAnimator.SetTrigger("y");
|
|
}
|
|
else
|
|
{
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600543C RID: 21564 RVA: 0x0019A688 File Offset: 0x00198888
|
|
public static Vector3 GetTrackerWorldPosition()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position - RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
}
|
|
|
|
// Token: 0x0600543D RID: 21565 RVA: 0x0019A6A8 File Offset: 0x001988A8
|
|
private void LBKEANHHNMD()
|
|
{
|
|
this.ABBMNJGMODF += Time.deltaTime;
|
|
switch (this.HPCKCOBKJLK)
|
|
{
|
|
case RoomCalibration.NCJJNMHNFHE.Started:
|
|
this.HMECMIDBABC();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Height:
|
|
this.JKAGPIOPOHG();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Verification:
|
|
this.HJMJEFIKCDB();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Warning:
|
|
this.JKKKAOHPKHD();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.ConfirmStanding:
|
|
this.ACCLHCMPAAE();
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600543E RID: 21566 RVA: 0x0019A728 File Offset: 0x00198928
|
|
private bool CECIGGOLLCB()
|
|
{
|
|
return (!this.BNDEPNDFCOE || !this.MFJEALMMELA().FIIPPMJEKNN) && (!this.LKNAHNJKKGC || this.BMDEELHFOAN.FIIPPMJEKNN);
|
|
}
|
|
|
|
// Token: 0x0600543F RID: 21567 RVA: 0x0019A764 File Offset: 0x00198964
|
|
private bool GLHBOBLDJBB()
|
|
{
|
|
return this.BMDEELHFOAN != null && this.BMDEELHFOAN.NBLPGJNDKIE();
|
|
}
|
|
|
|
// Token: 0x06005440 RID: 21568 RVA: 0x0019A788 File Offset: 0x00198988
|
|
public void Button_LowerHeight(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 2f)
|
|
{
|
|
this.CAEKEEKGEJD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005441 RID: 21569 RVA: 0x0019A7A0 File Offset: 0x001989A0
|
|
private void DAHBEGFPBCD()
|
|
{
|
|
this.ABBMNJGMODF += Time.deltaTime;
|
|
switch (this.HPCKCOBKJLK)
|
|
{
|
|
case RoomCalibration.NCJJNMHNFHE.Started:
|
|
this.HMECMIDBABC();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Height:
|
|
this.JKAGPIOPOHG();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Verification:
|
|
this.ILLOOBBKLNE();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Warning:
|
|
this.JKKKAOHPKHD();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.ConfirmStanding:
|
|
this.JKLBKILDPBN();
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005442 RID: 21570 RVA: 0x0019A820 File Offset: 0x00198A20
|
|
private void GKFICMBMHNM()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.GPOEPKEJLPC() != null)
|
|
{
|
|
this.GLKGFLFDPCL().HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
|
}
|
|
if (this.KIHBKMEOMKO() != null)
|
|
{
|
|
this.MFJEALMMELA().HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
|
}
|
|
if (!this.JPJLCHMAHNA)
|
|
{
|
|
base.StartCoroutine(this.KCMPJDOBKAH());
|
|
this.JPJLCHMAHNA = false;
|
|
}
|
|
if (this.ABBMNJGMODF > 37f && (this.NHBNICDHECL() || this.FAKLFHIEOMP))
|
|
{
|
|
this.MDNFGMIOPBF((RoomCalibration.NCJJNMHNFHE)6);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005443 RID: 21571 RVA: 0x0019A8BC File Offset: 0x00198ABC
|
|
private bool OAGCAIPDKOI()
|
|
{
|
|
return this.AMDGMOONBND() && this.KIHBKMEOMKO().LCNNAJIOGNG();
|
|
}
|
|
|
|
// Token: 0x06005444 RID: 21572 RVA: 0x0019A8D8 File Offset: 0x00198AD8
|
|
private void JKKKAOHPKHD()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 2f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
if (this.BMDEELHFOAN != null)
|
|
{
|
|
this.BMDEELHFOAN.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
|
}
|
|
if (this.JFLGEBGKFDJ != null)
|
|
{
|
|
this.JFLGEBGKFDJ.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Standard;
|
|
}
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.LECFBEBMLIC != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.SwitchActivity(PGOPAPIFECA.DORM_ROOM, KANCFPONEKJ.ANY_LEVEL, false, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005445 RID: 21573 RVA: 0x0019A97C File Offset: 0x00198B7C
|
|
private bool GOALPGMBNMI()
|
|
{
|
|
return (this.AMDGMOONBND() && this.JBENLBOMNDH().NKDPEKCDFHM()) || (this.GLHBOBLDJBB() && this.BMDEELHFOAN.GNOJOKAOOKP);
|
|
}
|
|
|
|
// Token: 0x06005446 RID: 21574 RVA: 0x0019A9B8 File Offset: 0x00198BB8
|
|
private RoomCalibration.CalibrationInstruction DJEIJAMFGJA(RoomCalibration.NCJJNMHNFHE CIEGKPGKOMH)
|
|
{
|
|
RoomCalibration.CalibrationInstruction calibrationInstruction = default(RoomCalibration.CalibrationInstruction);
|
|
if (this.calibrationInstructions != null)
|
|
{
|
|
foreach (RoomCalibration.CalibrationInstruction calibrationInstruction2 in this.calibrationInstructions)
|
|
{
|
|
if (calibrationInstruction2.state == CIEGKPGKOMH)
|
|
{
|
|
calibrationInstruction = calibrationInstruction2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return calibrationInstruction;
|
|
}
|
|
|
|
// Token: 0x06005447 RID: 21575 RVA: 0x0019AA18 File Offset: 0x00198C18
|
|
private void LJEIGPFAENA(float BPGKKPHLLGC)
|
|
{
|
|
this.BLIDKBGBBJH = BPGKKPHLLGC;
|
|
this.OBANDBIAKOB = this.BLIDKBGBBJH - this.LDFEHELBGAO.y;
|
|
CameraStartPoint.JHEGBFBDDMN(new Vector3(-this.LDFEHELBGAO.x, this.OBANDBIAKOB, -this.LDFEHELBGAO.z), true);
|
|
if (this.heightMetersText != null)
|
|
{
|
|
this.heightMetersText.text = string.Format("http://j.mp/1gxg1tf", this.BLIDKBGBBJH);
|
|
}
|
|
if (this.heightFeetText != null)
|
|
{
|
|
float num = 1580f;
|
|
float num2 = this.BLIDKBGBBJH * num;
|
|
int num3 = (int)num2;
|
|
float num4 = num2 - (float)num3;
|
|
int num5 = (int)(338f * num4 + 1614f);
|
|
if (num5 >= -5)
|
|
{
|
|
num3++;
|
|
num5 %= -112;
|
|
}
|
|
this.heightFeetText.text = string.Format("{0}: {1}", num3, num5);
|
|
}
|
|
if (this.cameraHeightMetersText != null)
|
|
{
|
|
this.cameraHeightMetersText.text = string.Format("\\n", this.OBANDBIAKOB);
|
|
}
|
|
if (this.cameraHeightFeetText != null)
|
|
{
|
|
float num6 = 1448f;
|
|
float num7 = this.OBANDBIAKOB * num6;
|
|
int num8 = (int)num7;
|
|
float num9 = num7 - (float)num8;
|
|
int num10 = (int)(721f * num9 + 300f);
|
|
if (num10 >= 116)
|
|
{
|
|
num8 += 0;
|
|
num10 %= -10;
|
|
}
|
|
this.cameraHeightFeetText.text = string.Format("{0}v1/moderationBlockDetails", num8, num10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005448 RID: 21576 RVA: 0x0019ABB8 File Offset: 0x00198DB8
|
|
private void ECAIIOFEADG()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(false);
|
|
}
|
|
if (RoomCalibration.PBKJBNKBDCJ())
|
|
{
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Height);
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.GFPCOHDFDEF() != null)
|
|
{
|
|
RecRoomSceneManager.LEILGOOHEOI().CIKJHLMMIBJ((PGOPAPIFECA)(-25), KANCFPONEKJ.ANY_LEVEL, true, true);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x06005449 RID: 21577 RVA: 0x0019AC40 File Offset: 0x00198E40
|
|
private void LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.ABBMNJGMODF = 1426f;
|
|
if (this.instructionsAnimator != null)
|
|
{
|
|
this.instructionsAnimator.SetTrigger("bhgGIAEoCzIULnJlY3Jvb20uVmVjdG9yM0RhdGESMgoUY3VycmVudExvY2Fs");
|
|
}
|
|
else
|
|
{
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600544A RID: 21578 RVA: 0x0019AC80 File Offset: 0x00198E80
|
|
public void Button_Done(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 2f)
|
|
{
|
|
this.BECELAHEHBO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600544B RID: 21579 RVA: 0x0019AC98 File Offset: 0x00198E98
|
|
private void BMEDEEFMBPE(float BPGKKPHLLGC)
|
|
{
|
|
this.BLIDKBGBBJH = BPGKKPHLLGC;
|
|
this.OBANDBIAKOB = this.BLIDKBGBBJH - this.LDFEHELBGAO.y;
|
|
CameraStartPoint.UpdateOffset(new Vector3(-this.LDFEHELBGAO.x, this.OBANDBIAKOB, -this.LDFEHELBGAO.z), true);
|
|
if (this.heightMetersText != null)
|
|
{
|
|
this.heightMetersText.text = string.Format("{0:0.00} m", this.BLIDKBGBBJH);
|
|
}
|
|
if (this.heightFeetText != null)
|
|
{
|
|
float num = 3.28084f;
|
|
float num2 = this.BLIDKBGBBJH * num;
|
|
int num3 = (int)num2;
|
|
float num4 = num2 - (float)num3;
|
|
int num5 = (int)(12f * num4 + 0.5f);
|
|
if (num5 >= 12)
|
|
{
|
|
num3++;
|
|
num5 %= 12;
|
|
}
|
|
this.heightFeetText.text = string.Format("{0} ft {1} in", num3, num5);
|
|
}
|
|
if (this.cameraHeightMetersText != null)
|
|
{
|
|
this.cameraHeightMetersText.text = string.Format("{0:0.00} m", this.OBANDBIAKOB);
|
|
}
|
|
if (this.cameraHeightFeetText != null)
|
|
{
|
|
float num6 = 3.28084f;
|
|
float num7 = this.OBANDBIAKOB * num6;
|
|
int num8 = (int)num7;
|
|
float num9 = num7 - (float)num8;
|
|
int num10 = (int)(12f * num9 + 0.5f);
|
|
if (num10 >= 12)
|
|
{
|
|
num8++;
|
|
num10 %= 12;
|
|
}
|
|
this.cameraHeightFeetText.text = string.Format("{0} ft {1} in", num8, num10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600544C RID: 21580 RVA: 0x0019AE38 File Offset: 0x00199038
|
|
private void PONDPPDHJOM()
|
|
{
|
|
if (this.KMGEBLJHGMO() != (RoomCalibration.NCJJNMHNFHE)6)
|
|
{
|
|
this.AMKBJJFHDCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600544D RID: 21581 RVA: 0x0019AE4C File Offset: 0x0019904C
|
|
private bool IHDINPKDMMD()
|
|
{
|
|
return (this.BNDEPNDFCOE && this.JFLGEBGKFDJ.NKDPEKCDFHM()) || !this.IFIBDMHJKHF() || this.GPOEPKEJLPC().NKDPEKCDFHM();
|
|
}
|
|
|
|
// Token: 0x0600544E RID: 21582 RVA: 0x0019AE88 File Offset: 0x00199088
|
|
private RoomCalibration.CalibrationInstruction GFODHEIJJJM(RoomCalibration.NCJJNMHNFHE CIEGKPGKOMH)
|
|
{
|
|
RoomCalibration.CalibrationInstruction calibrationInstruction = default(RoomCalibration.CalibrationInstruction);
|
|
if (this.calibrationInstructions != null)
|
|
{
|
|
foreach (RoomCalibration.CalibrationInstruction calibrationInstruction2 in this.calibrationInstructions)
|
|
{
|
|
if (calibrationInstruction2.state == CIEGKPGKOMH)
|
|
{
|
|
calibrationInstruction = calibrationInstruction2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return calibrationInstruction;
|
|
}
|
|
|
|
// Token: 0x0600544F RID: 21583 RVA: 0x0019AEE8 File Offset: 0x001990E8
|
|
public static bool GMFFDOPGLNK()
|
|
{
|
|
return !RoomCalibration.PBKJBNKBDCJ() || (PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_STATE_PREF) && PlayerPrefs.GetInt(RoomCalibration.CALIBRATION_STATE_PREF) < 7);
|
|
}
|
|
|
|
// Token: 0x06005450 RID: 21584 RVA: 0x0019AF18 File Offset: 0x00199118
|
|
public static void SaveRoomCalibration()
|
|
{
|
|
PlayerPrefs.SetInt(RoomCalibration.CALIBRATION_STATE_PREF, 4);
|
|
PlayerPrefs.SetFloat(RoomCalibration.CALIBRATION_HEIGHT_PREF, SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.y);
|
|
PlayerPrefs.SetFloat(RoomCalibration.CALIBRATION_DEPTH_PREF, SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.z);
|
|
PlayerPrefs.SetFloat(RoomCalibration.CALIBRATION_OFFCENTER_PREF, SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.x);
|
|
PlayerPrefs.Save();
|
|
}
|
|
|
|
// Token: 0x06005451 RID: 21585 RVA: 0x0019AF98 File Offset: 0x00199198
|
|
private void GGHNBMLMNOP()
|
|
{
|
|
if (this.KMGEBLJHGMO() != (RoomCalibration.NCJJNMHNFHE)8)
|
|
{
|
|
this.AMKBJJFHDCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005452 RID: 21586 RVA: 0x0019AFAC File Offset: 0x001991AC
|
|
private bool NHBNICDHECL()
|
|
{
|
|
return !this.GLHBOBLDJBB() || this.GLKGFLFDPCL().EBFANAODKIB();
|
|
}
|
|
|
|
// Token: 0x1700018F RID: 399
|
|
// (get) Token: 0x06005453 RID: 21587 RVA: 0x0019AFC8 File Offset: 0x001991C8
|
|
private bool BNDEPNDFCOE
|
|
{
|
|
get
|
|
{
|
|
return this.JFLGEBGKFDJ != null && this.JFLGEBGKFDJ.HJNLIIKJJFO;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005454 RID: 21588 RVA: 0x0019AFEC File Offset: 0x001991EC
|
|
private void HFDDMLDFBDP()
|
|
{
|
|
Vector3 position = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position;
|
|
Vector3 trackerWorldPosition = RoomCalibration.GetTrackerWorldPosition();
|
|
this.trackerGizmo.transform.position = trackerWorldPosition;
|
|
Vector3 vector = trackerWorldPosition - SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition;
|
|
vector.y = 0f;
|
|
this.roomCenterIndicator.transform.position = vector;
|
|
if (this.HPCKCOBKJLK == RoomCalibration.NCJJNMHNFHE.Verification)
|
|
{
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
}
|
|
else if (this.HAHNIBHNNII == RoomCalibration.NCJJNMHNFHE.Verification && this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005455 RID: 21589 RVA: 0x0019B0B0 File Offset: 0x001992B0
|
|
public static void EDIMPMEGJFD()
|
|
{
|
|
if (!RoomCalibration.CDAFCDJEEII() && RoomCalibration.FPJMAEECGDD)
|
|
{
|
|
float num = ((!PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_OFFCENTER_PREF)) ? SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.x : PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_OFFCENTER_PREF));
|
|
Vector3 vector = new Vector3(num, PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_HEIGHT_PREF), PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_DEPTH_PREF));
|
|
CameraStartPoint.MDIPFOMAFAM(vector, false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018D RID: 397
|
|
// (get) Token: 0x06005456 RID: 21590 RVA: 0x0019B12C File Offset: 0x0019932C
|
|
private ControllerIO JFLGEBGKFDJ
|
|
{
|
|
get
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.AAJLDBOOGIM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005457 RID: 21591 RVA: 0x0019B138 File Offset: 0x00199338
|
|
private ControllerIO GLKGFLFDPCL()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.CKKHCDNOAHJ;
|
|
}
|
|
|
|
// Token: 0x06005458 RID: 21592 RVA: 0x0019B144 File Offset: 0x00199344
|
|
private void PIAEBJLIADM()
|
|
{
|
|
this.FNAFAMDBJHJ();
|
|
if (this.ABBMNJGMODF > 69f && (this.NHBNICDHECL() || this.KKFMJICKJFP()))
|
|
{
|
|
if (this.GLKGFLFDPCL() != null)
|
|
{
|
|
this.BMDEELHFOAN.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Calibration;
|
|
}
|
|
if (this.MFJEALMMELA() != null)
|
|
{
|
|
this.JFLGEBGKFDJ.AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.GFPCOHDFDEF() != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.SwitchActivity((PGOPAPIFECA)(-180), KANCFPONEKJ.ANY_LEVEL, true, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005459 RID: 21593 RVA: 0x0019B1E8 File Offset: 0x001993E8
|
|
public static void LoadRoomCalibration()
|
|
{
|
|
if (!RoomCalibration.OPGAJAFMOMN && RoomCalibration.FPJMAEECGDD)
|
|
{
|
|
float num = ((!PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_OFFCENTER_PREF)) ? SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.x : PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_OFFCENTER_PREF));
|
|
Vector3 vector = new Vector3(num, PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_HEIGHT_PREF), PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_DEPTH_PREF));
|
|
CameraStartPoint.UpdateOffset(vector, false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600545A RID: 21594 RVA: 0x0019B264 File Offset: 0x00199464
|
|
private void HMECMIDBABC()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.BMDEELHFOAN != null)
|
|
{
|
|
this.BMDEELHFOAN.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Calibration;
|
|
}
|
|
if (this.JFLGEBGKFDJ != null)
|
|
{
|
|
this.JFLGEBGKFDJ.HANFGNDDNAM = ControllerIO.KJJKAFNOLLL.Calibration;
|
|
}
|
|
if (!this.JPJLCHMAHNA)
|
|
{
|
|
base.StartCoroutine(this.KCMPJDOBKAH());
|
|
this.JPJLCHMAHNA = true;
|
|
}
|
|
if (this.ABBMNJGMODF > 2f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.ConfirmStanding;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600545B RID: 21595 RVA: 0x0019B300 File Offset: 0x00199500
|
|
private void KEDFCAKALEI()
|
|
{
|
|
CameraStartPoint.UpdateOffset(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition + Vector3.up * this.manualHeightAdjustIncrement, false);
|
|
this.BMEDEEFMBPE(this.BLIDKBGBBJH + this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x1700018E RID: 398
|
|
// (get) Token: 0x0600545C RID: 21596 RVA: 0x0019B340 File Offset: 0x00199540
|
|
private bool LKNAHNJKKGC
|
|
{
|
|
get
|
|
{
|
|
return this.BMDEELHFOAN != null && this.BMDEELHFOAN.HJNLIIKJJFO;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600545D RID: 21597 RVA: 0x0019B364 File Offset: 0x00199564
|
|
public void BMFOINICIBA(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 1964f)
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Started;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600545E RID: 21598 RVA: 0x0019B380 File Offset: 0x00199580
|
|
public static void LPMCDOMADLG(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Remove(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0600545F RID: 21599 RVA: 0x0019B3B4 File Offset: 0x001995B4
|
|
private void GLDFHBCPIHD()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 362f && (this.GOAEELJHBJA || this.GEHNMBKAKDI()))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.LCNLDDLNCFP();
|
|
this.JIPIFEDADDH(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005460 RID: 21600 RVA: 0x0019B3F4 File Offset: 0x001995F4
|
|
private void JIPIFEDADDH(RoomCalibration.NCJJNMHNFHE NOBAPCOKFIL)
|
|
{
|
|
this.IHLGIDABOLB = NOBAPCOKFIL;
|
|
this.ABBMNJGMODF = 411f;
|
|
if (this.instructionsAnimator != null)
|
|
{
|
|
this.instructionsAnimator.SetTrigger(".");
|
|
}
|
|
else
|
|
{
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005461 RID: 21601 RVA: 0x0019B434 File Offset: 0x00199634
|
|
private ControllerIO KIHBKMEOMKO()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.AAJLDBOOGIM;
|
|
}
|
|
|
|
// Token: 0x06005462 RID: 21602 RVA: 0x0019B440 File Offset: 0x00199640
|
|
private void ANFIKIIPIMM()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1f && (this.NHBNICDHECL() || this.KKFMJICKJFP()))
|
|
{
|
|
float num = (this.GLKGFLFDPCL().transform.position - this.JFLGEBGKFDJ.transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 1309f);
|
|
this.LDDHMBIIBGP(num);
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Warning;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005463 RID: 21603 RVA: 0x0019B4C8 File Offset: 0x001996C8
|
|
private RoomCalibration.CalibrationInstruction OAIKBOIPGIG(RoomCalibration.NCJJNMHNFHE CIEGKPGKOMH)
|
|
{
|
|
RoomCalibration.CalibrationInstruction calibrationInstruction = default(RoomCalibration.CalibrationInstruction);
|
|
if (this.calibrationInstructions != null)
|
|
{
|
|
foreach (RoomCalibration.CalibrationInstruction calibrationInstruction2 in this.calibrationInstructions)
|
|
{
|
|
if (calibrationInstruction2.state == CIEGKPGKOMH)
|
|
{
|
|
calibrationInstruction = calibrationInstruction2;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return calibrationInstruction;
|
|
}
|
|
|
|
// Token: 0x06005464 RID: 21604 RVA: 0x0019B528 File Offset: 0x00199728
|
|
public void Button_StartOver(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 2f)
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Started;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005465 RID: 21605 RVA: 0x0019B544 File Offset: 0x00199744
|
|
private void LDDHMBIIBGP(float BPGKKPHLLGC)
|
|
{
|
|
this.BLIDKBGBBJH = BPGKKPHLLGC;
|
|
this.OBANDBIAKOB = this.BLIDKBGBBJH - this.LDFEHELBGAO.y;
|
|
CameraStartPoint.HJNEGBCCNKP(new Vector3(-this.LDFEHELBGAO.x, this.OBANDBIAKOB, -this.LDFEHELBGAO.z), false);
|
|
if (this.heightMetersText != null)
|
|
{
|
|
this.heightMetersText.text = string.Format("HTTPManager", this.BLIDKBGBBJH);
|
|
}
|
|
if (this.heightFeetText != null)
|
|
{
|
|
float num = 1406f;
|
|
float num2 = this.BLIDKBGBBJH * num;
|
|
int num3 = (int)num2;
|
|
float num4 = num2 - (float)num3;
|
|
int num5 = (int)(72f * num4 + 124f);
|
|
if (num5 >= 109)
|
|
{
|
|
num3 += 0;
|
|
num5 %= -30;
|
|
}
|
|
this.heightFeetText.text = string.Format("JoinOrCreateRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for callback: OnJoinedLobby or OnConnectedToMaster.", num3, num5);
|
|
}
|
|
if (this.cameraHeightMetersText != null)
|
|
{
|
|
this.cameraHeightMetersText.text = string.Format("LastAcquiredTime", this.OBANDBIAKOB);
|
|
}
|
|
if (this.cameraHeightFeetText != null)
|
|
{
|
|
float num6 = 1219f;
|
|
float num7 = this.OBANDBIAKOB * num6;
|
|
int num8 = (int)num7;
|
|
float num9 = num7 - (float)num8;
|
|
int num10 = (int)(1401f * num9 + 508f);
|
|
if (num10 >= -120)
|
|
{
|
|
num8++;
|
|
num10 %= 13;
|
|
}
|
|
this.cameraHeightFeetText.text = string.Format("We will investigate.", num8, num10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018C RID: 396
|
|
// (get) Token: 0x06005467 RID: 21607 RVA: 0x0019B6EC File Offset: 0x001998EC
|
|
private ControllerIO BMDEELHFOAN
|
|
{
|
|
get
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.CKKHCDNOAHJ;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005469 RID: 21609 RVA: 0x0019B72C File Offset: 0x0019992C
|
|
private void ABFLNNDFMNP()
|
|
{
|
|
CameraStartPoint.HJNEGBCCNKP(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition - Vector3.up * this.manualHeightAdjustIncrement, true);
|
|
this.GDFHOMFMMBC(this.BLIDKBGBBJH - this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x0600546A RID: 21610 RVA: 0x0019B76C File Offset: 0x0019996C
|
|
public void PFIMFHAMKDA()
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.DHHKCBJEKEE();
|
|
}
|
|
|
|
// Token: 0x0600546B RID: 21611 RVA: 0x0019B780 File Offset: 0x00199980
|
|
private void JJEHDEOKOBB()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(false);
|
|
}
|
|
if (RoomCalibration.PBKJBNKBDCJ())
|
|
{
|
|
this.JIPIFEDADDH(RoomCalibration.NCJJNMHNFHE.Height);
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.KGLKKGGLMLK() != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.SwitchActivity((PGOPAPIFECA)16, KANCFPONEKJ.DORM_ROOM, false, false);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x0600546C RID: 21612 RVA: 0x0019B808 File Offset: 0x00199A08
|
|
public static Vector3 CBLCJIDAPPH()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position - RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
}
|
|
|
|
// Token: 0x0600546D RID: 21613 RVA: 0x0019B828 File Offset: 0x00199A28
|
|
private void PMBEFDMOHDG()
|
|
{
|
|
CameraStartPoint.ABAODNDLEGB(SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition - Vector3.up * this.manualHeightAdjustIncrement, false);
|
|
this.LJEIGPFAENA(this.BLIDKBGBBJH - this.manualHeightAdjustIncrement);
|
|
}
|
|
|
|
// Token: 0x0600546E RID: 21614 RVA: 0x0019B868 File Offset: 0x00199A68
|
|
private void AMKBJJFHDCE()
|
|
{
|
|
this.ABBMNJGMODF += Time.deltaTime;
|
|
switch (this.HPCKCOBKJLK)
|
|
{
|
|
case RoomCalibration.NCJJNMHNFHE.Started:
|
|
this.HMECMIDBABC();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Height:
|
|
this.ADPMFIBKENF();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Verification:
|
|
this.BOJIJOBCHKC();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.Warning:
|
|
this.PGLAIJNAAAP();
|
|
break;
|
|
case RoomCalibration.NCJJNMHNFHE.ConfirmStanding:
|
|
this.HCFENIOPLEM();
|
|
break;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018B RID: 395
|
|
// (get) Token: 0x0600546F RID: 21615 RVA: 0x0019B8E8 File Offset: 0x00199AE8
|
|
public static bool OPGAJAFMOMN
|
|
{
|
|
get
|
|
{
|
|
return RoomCalibration.FPJMAEECGDD && (!PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_STATE_PREF) || PlayerPrefs.GetInt(RoomCalibration.CALIBRATION_STATE_PREF) < 4);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005470 RID: 21616 RVA: 0x0019B918 File Offset: 0x00199B18
|
|
private void GNJHGBPKMNB()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.LDDDLHNPOCA())
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.EIOHPAMCPFH())
|
|
{
|
|
this.MBGEJHOBNJG();
|
|
}
|
|
else if (this.CECIGGOLLCB())
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Height;
|
|
}
|
|
else if (this.ABBMNJGMODF > 97f && (this.GOAEELJHBJA || this.KKFMJICKJFP()))
|
|
{
|
|
this.DEINGFAFJGG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005471 RID: 21617 RVA: 0x0019B99C File Offset: 0x00199B9C
|
|
private void DHHKCBJEKEE()
|
|
{
|
|
Vector3 position = SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.KPGFMCHFLBM.transform.position;
|
|
Vector3 trackerWorldPosition = RoomCalibration.GetTrackerWorldPosition();
|
|
this.trackerGizmo.transform.position = trackerWorldPosition;
|
|
Vector3 vector = trackerWorldPosition - SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition;
|
|
vector.y = 1147f;
|
|
this.roomCenterIndicator.transform.position = vector;
|
|
if (this.HPCKCOBKJLK == RoomCalibration.NCJJNMHNFHE.Warning)
|
|
{
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
}
|
|
else if (this.HAHNIBHNNII == RoomCalibration.NCJJNMHNFHE.Height && this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005472 RID: 21618 RVA: 0x0019BA60 File Offset: 0x00199C60
|
|
private void BECELAHEHBO()
|
|
{
|
|
RoomCalibration.SaveRoomCalibration();
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Warning;
|
|
}
|
|
|
|
// Token: 0x17000191 RID: 401
|
|
// (get) Token: 0x06005473 RID: 21619 RVA: 0x0019BA70 File Offset: 0x00199C70
|
|
private bool FAKLFHIEOMP
|
|
{
|
|
get
|
|
{
|
|
return this.BNDEPNDFCOE && this.JFLGEBGKFDJ.MBIDCPPKKHE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000192 RID: 402
|
|
// (get) Token: 0x06005474 RID: 21620 RVA: 0x0019BA8C File Offset: 0x00199C8C
|
|
private bool PHNHEMGDNOL
|
|
{
|
|
get
|
|
{
|
|
return (this.BNDEPNDFCOE && this.JFLGEBGKFDJ.NFBPPEPPJPB) || (this.LKNAHNJKKGC && this.BMDEELHFOAN.NFBPPEPPJPB);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005475 RID: 21621 RVA: 0x0019BAC8 File Offset: 0x00199CC8
|
|
private void OAJFMCPIOKI()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.BMDEELHFOAN != null)
|
|
{
|
|
this.GPOEPKEJLPC().JBKNLCIIKJK(ControllerIO.KJJKAFNOLLL.Standard);
|
|
}
|
|
if (this.KIHBKMEOMKO() != null)
|
|
{
|
|
this.KIHBKMEOMKO().AOGNBAHOOHM(ControllerIO.KJJKAFNOLLL.Calibration);
|
|
}
|
|
if (!this.JPJLCHMAHNA)
|
|
{
|
|
base.StartCoroutine(this.KCMPJDOBKAH());
|
|
this.JPJLCHMAHNA = true;
|
|
}
|
|
if (this.ABBMNJGMODF > 333f && (this.NHBNICDHECL() || this.GEHNMBKAKDI()))
|
|
{
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Height);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005476 RID: 21622 RVA: 0x0019BB64 File Offset: 0x00199D64
|
|
private void OALANHEFOCD()
|
|
{
|
|
this.FNAFAMDBJHJ();
|
|
if (this.ABBMNJGMODF > 1991f && (this.GOAEELJHBJA || this.KKFMJICKJFP()))
|
|
{
|
|
float num = (this.GLKGFLFDPCL().transform.position - this.MFJEALMMELA().transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 853f);
|
|
this.LDDHMBIIBGP(num);
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.ConfirmStanding);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005477 RID: 21623 RVA: 0x0019BBEC File Offset: 0x00199DEC
|
|
private void HKMPCOFHIDI()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 418f && (this.GOAEELJHBJA || this.OAGCAIPDKOI()))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Started;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005478 RID: 21624 RVA: 0x0019BC2C File Offset: 0x00199E2C
|
|
public static bool PBKJBNKBDCJ()
|
|
{
|
|
return !(SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM != null) || SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM.LOLPFEFLKJN == PlatformManager.JNJEBIDGBNH.OCULUS;
|
|
}
|
|
|
|
// Token: 0x06005479 RID: 21625 RVA: 0x0019BC50 File Offset: 0x00199E50
|
|
public static bool FJAICAAHEMD()
|
|
{
|
|
return RoomCalibration.FPJMAEECGDD && (!PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_STATE_PREF) || PlayerPrefs.GetInt(RoomCalibration.CALIBRATION_STATE_PREF) < 6);
|
|
}
|
|
|
|
// Token: 0x0600547A RID: 21626 RVA: 0x0019BC80 File Offset: 0x00199E80
|
|
private void HJMJEFIKCDB()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.PHNHEMGDNOL)
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
else if (this.ECHAEKLPJCG)
|
|
{
|
|
this.CAEKEEKGEJD();
|
|
}
|
|
else if (this.JPBNJJLLGED)
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Started;
|
|
}
|
|
else if (this.ABBMNJGMODF > 2f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
this.BECELAHEHBO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600547B RID: 21627 RVA: 0x0019BD04 File Offset: 0x00199F04
|
|
private void GDFHOMFMMBC(float BPGKKPHLLGC)
|
|
{
|
|
this.BLIDKBGBBJH = BPGKKPHLLGC;
|
|
this.OBANDBIAKOB = this.BLIDKBGBBJH - this.LDFEHELBGAO.y;
|
|
CameraStartPoint.NJMNBDEBFOD(new Vector3(-this.LDFEHELBGAO.x, this.OBANDBIAKOB, -this.LDFEHELBGAO.z), true);
|
|
if (this.heightMetersText != null)
|
|
{
|
|
this.heightMetersText.text = string.Format("anonymous", this.BLIDKBGBBJH);
|
|
}
|
|
if (this.heightFeetText != null)
|
|
{
|
|
float num = 183f;
|
|
float num2 = this.BLIDKBGBBJH * num;
|
|
int num3 = (int)num2;
|
|
float num4 = num2 - (float)num3;
|
|
int num5 = (int)(1773f * num4 + 1656f);
|
|
if (num5 >= -19)
|
|
{
|
|
num3++;
|
|
num5 %= -8;
|
|
}
|
|
this.heightFeetText.text = string.Format("el", num3, num5);
|
|
}
|
|
if (this.cameraHeightMetersText != null)
|
|
{
|
|
this.cameraHeightMetersText.text = string.Format("Description", this.OBANDBIAKOB);
|
|
}
|
|
if (this.cameraHeightFeetText != null)
|
|
{
|
|
float num6 = 993f;
|
|
float num7 = this.OBANDBIAKOB * num6;
|
|
int num8 = (int)num7;
|
|
float num9 = num7 - (float)num8;
|
|
int num10 = (int)(562f * num9 + 782f);
|
|
if (num10 >= -12)
|
|
{
|
|
num8++;
|
|
num10 %= -122;
|
|
}
|
|
this.cameraHeightFeetText.text = string.Format("PlayerPing", num8, num10);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600547C RID: 21628 RVA: 0x0019BEA4 File Offset: 0x0019A0A4
|
|
private ControllerIO MFJEALMMELA()
|
|
{
|
|
return SingletonMonoBehaviour<CameraRig>.NCKMBFBMBFM.AAJLDBOOGIM;
|
|
}
|
|
|
|
// Token: 0x0600547D RID: 21629 RVA: 0x0019BEB0 File Offset: 0x0019A0B0
|
|
public static void GFNGNHHPIFI(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0600547E RID: 21630 RVA: 0x0019BEE4 File Offset: 0x0019A0E4
|
|
public static void JOHDEJLNGGK(Action NOBAPCOKFIL)
|
|
{
|
|
Action action = RoomCalibration.CCKMBGEAGAM;
|
|
Action action2;
|
|
do
|
|
{
|
|
action2 = action;
|
|
action = Interlocked.CompareExchange<Action>(ref RoomCalibration.CCKMBGEAGAM, (Action)Delegate.Combine(action2, NOBAPCOKFIL), action);
|
|
}
|
|
while (action != action2);
|
|
}
|
|
|
|
// Token: 0x0600547F RID: 21631 RVA: 0x0019BF18 File Offset: 0x0019A118
|
|
public void Button_RaiseHeight(PhysicalButton ILOFENDAFLM, Player JEFGMHBLLKI)
|
|
{
|
|
if (this.ABBMNJGMODF > 2f)
|
|
{
|
|
this.KEDFCAKALEI();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005480 RID: 21632 RVA: 0x0019BF30 File Offset: 0x0019A130
|
|
public static void IPJBFLBIBHI()
|
|
{
|
|
if (!RoomCalibration.CDAFCDJEEII() && RoomCalibration.KEHNIHKHJMH())
|
|
{
|
|
float num = ((!PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_OFFCENTER_PREF)) ? SingletonMonoBehaviour<CameraStartPoint>.NCKMBFBMBFM.transform.localPosition.x : PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_OFFCENTER_PREF));
|
|
Vector3 vector = new Vector3(num, PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_HEIGHT_PREF), PlayerPrefs.GetFloat(RoomCalibration.CALIBRATION_DEPTH_PREF));
|
|
CameraStartPoint.FEMGCDCNLHG(vector, false);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005481 RID: 21633 RVA: 0x0019BFAC File Offset: 0x0019A1AC
|
|
private RoomCalibration.NCJJNMHNFHE KMGEBLJHGMO()
|
|
{
|
|
return this.IHLGIDABOLB;
|
|
}
|
|
|
|
// Token: 0x06005482 RID: 21634 RVA: 0x0019BFB4 File Offset: 0x0019A1B4
|
|
private void JAMDPKFNJBF()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(true);
|
|
}
|
|
if (RoomCalibration.PBKJBNKBDCJ())
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Height;
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.GFPCOHDFDEF() != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.CIKJHLMMIBJ((PGOPAPIFECA)60, KANCFPONEKJ.ANY_LEVEL, false, false);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x06005483 RID: 21635 RVA: 0x0019C03C File Offset: 0x0019A23C
|
|
private bool KKFMJICKJFP()
|
|
{
|
|
return this.BNDEPNDFCOE && this.JFLGEBGKFDJ.MBIDCPPKKHE;
|
|
}
|
|
|
|
// Token: 0x06005484 RID: 21636 RVA: 0x0019C058 File Offset: 0x0019A258
|
|
private void ADPMFIBKENF()
|
|
{
|
|
this.EJLDILGKGFE();
|
|
if (this.ABBMNJGMODF > 1327f && (this.NHBNICDHECL() || this.GEHNMBKAKDI()))
|
|
{
|
|
float num = (this.GPOEPKEJLPC().transform.position - this.MFJEALMMELA().transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 951f);
|
|
this.LDDHMBIIBGP(num);
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.Verification);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005485 RID: 21637 RVA: 0x0019C0E0 File Offset: 0x0019A2E0
|
|
private void ACCLHCMPAAE()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 2f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Height;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005486 RID: 21638 RVA: 0x0019C120 File Offset: 0x0019A320
|
|
private void JKLBKILDPBN()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 1113f && (this.GOAEELJHBJA || this.FAKLFHIEOMP))
|
|
{
|
|
this.LDFEHELBGAO = RoomCalibration.GetHMDPositionRelativeToTracker();
|
|
this.LCFMDGJGFAH(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000190 RID: 400
|
|
// (get) Token: 0x06005487 RID: 21639 RVA: 0x0019C160 File Offset: 0x0019A360
|
|
private bool GOAEELJHBJA
|
|
{
|
|
get
|
|
{
|
|
return this.LKNAHNJKKGC && this.BMDEELHFOAN.MBIDCPPKKHE;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700018A RID: 394
|
|
// (get) Token: 0x06005488 RID: 21640 RVA: 0x0019C17C File Offset: 0x0019A37C
|
|
public static bool FPJMAEECGDD
|
|
{
|
|
get
|
|
{
|
|
return SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM != null && SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM.LOLPFEFLKJN == PlatformManager.JNJEBIDGBNH.PS4;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005489 RID: 21641 RVA: 0x0019C1A0 File Offset: 0x0019A3A0
|
|
private bool AMDGMOONBND()
|
|
{
|
|
return !(this.KIHBKMEOMKO() != null) || this.MFJEALMMELA().NBLPGJNDKIE();
|
|
}
|
|
|
|
// Token: 0x0600548A RID: 21642 RVA: 0x0019C1C4 File Offset: 0x0019A3C4
|
|
private void JCIECIIBLCC()
|
|
{
|
|
this.BKBFIGCPIMI();
|
|
if (this.ABBMNJGMODF > 473f && (this.NHBNICDHECL() || this.FAKLFHIEOMP))
|
|
{
|
|
float num = (this.BMDEELHFOAN.transform.position - this.KIHBKMEOMKO().transform.position).magnitude + this.extraDistanceBetweenHands;
|
|
num = Math.Max(num, 1966f);
|
|
this.JMCHEOIJDCM(num);
|
|
this.JIPIFEDADDH(RoomCalibration.NCJJNMHNFHE.Warning);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600548B RID: 21643 RVA: 0x0019C24C File Offset: 0x0019A44C
|
|
private void Start()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(false);
|
|
}
|
|
if (RoomCalibration.FPJMAEECGDD)
|
|
{
|
|
this.HPCKCOBKJLK = RoomCalibration.NCJJNMHNFHE.Started;
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.LECFBEBMLIC != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.SwitchActivity(PGOPAPIFECA.DORM_ROOM, KANCFPONEKJ.ANY_LEVEL, false, false);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x0600548C RID: 21644 RVA: 0x0019C2D4 File Offset: 0x0019A4D4
|
|
public static Vector3 GetHMDPositionRelativeToTracker()
|
|
{
|
|
return Vector3.zero;
|
|
}
|
|
|
|
// Token: 0x17000194 RID: 404
|
|
// (get) Token: 0x0600548D RID: 21645 RVA: 0x0019C2E8 File Offset: 0x0019A4E8
|
|
private bool JPBNJJLLGED
|
|
{
|
|
get
|
|
{
|
|
return (this.BNDEPNDFCOE && this.JFLGEBGKFDJ.FIIPPMJEKNN) || (this.LKNAHNJKKGC && this.BMDEELHFOAN.FIIPPMJEKNN);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600548E RID: 21646 RVA: 0x0019C324 File Offset: 0x0019A524
|
|
private void LMEGOIHONGK()
|
|
{
|
|
PlayerPrefs.DeleteKey(RoomCalibration.CALIBRATION_STATE_PREF);
|
|
PlayerPrefs.Save();
|
|
if (this.showDuringVerification != null)
|
|
{
|
|
this.showDuringVerification.SetActive(false);
|
|
}
|
|
if (RoomCalibration.KEHNIHKHJMH())
|
|
{
|
|
this.MDNFGMIOPBF(RoomCalibration.NCJJNMHNFHE.Started);
|
|
}
|
|
else
|
|
{
|
|
if (RoomCalibration.CCKMBGEAGAM != null)
|
|
{
|
|
RoomCalibration.CCKMBGEAGAM();
|
|
}
|
|
if (FKJHLNJDEKK.LECFBEBMLIC != null)
|
|
{
|
|
RecRoomSceneManager.NCKMBFBMBFM.HAFLJEFPGMG((PGOPAPIFECA)(-57), KANCFPONEKJ.ANY_LEVEL, true, false);
|
|
}
|
|
}
|
|
this.UpdateInstructionsForCurrentState();
|
|
}
|
|
|
|
// Token: 0x0600548F RID: 21647 RVA: 0x0019C3AC File Offset: 0x0019A5AC
|
|
public static bool DMLAFPHMJJF()
|
|
{
|
|
return RoomCalibration.FPJMAEECGDD && PlayerPrefs.HasKey(RoomCalibration.CALIBRATION_STATE_PREF) && PlayerPrefs.GetInt(RoomCalibration.CALIBRATION_STATE_PREF) < 0;
|
|
}
|
|
|
|
// Token: 0x06005490 RID: 21648 RVA: 0x0019C3DC File Offset: 0x0019A5DC
|
|
public static bool KEHNIHKHJMH()
|
|
{
|
|
return !(SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM != null) || SingletonMonoBehaviour<PlatformManager>.NCKMBFBMBFM.LOLPFEFLKJN == PlatformManager.JNJEBIDGBNH.PS4;
|
|
}
|
|
|
|
// Token: 0x04000AA5 RID: 2725
|
|
[SerializeField]
|
|
private float extraDistanceBetweenHands = 0.17f;
|
|
|
|
// Token: 0x04000AA6 RID: 2726
|
|
[SerializeField]
|
|
private float manualHeightAdjustIncrement = 0.0254f;
|
|
|
|
// Token: 0x04000AA7 RID: 2727
|
|
[SerializeField]
|
|
private RoomCalibration.CalibrationInstruction[] calibrationInstructions;
|
|
|
|
// Token: 0x04000AA8 RID: 2728
|
|
[SerializeField]
|
|
private GameObject roomCenterIndicator;
|
|
|
|
// Token: 0x04000AA9 RID: 2729
|
|
[SerializeField]
|
|
private GameObject trackerGizmo;
|
|
|
|
// Token: 0x04000AAA RID: 2730
|
|
[SerializeField]
|
|
private GameObject showDuringVerification;
|
|
|
|
// Token: 0x04000AAB RID: 2731
|
|
[SerializeField]
|
|
private Text heightMetersText;
|
|
|
|
// Token: 0x04000AAC RID: 2732
|
|
[SerializeField]
|
|
private Text heightFeetText;
|
|
|
|
// Token: 0x04000AAD RID: 2733
|
|
[SerializeField]
|
|
private Text cameraHeightMetersText;
|
|
|
|
// Token: 0x04000AAE RID: 2734
|
|
[SerializeField]
|
|
private Text cameraHeightFeetText;
|
|
|
|
// Token: 0x04000AAF RID: 2735
|
|
[SerializeField]
|
|
private Animator instructionsAnimator;
|
|
|
|
// Token: 0x04000AB0 RID: 2736
|
|
[SerializeField]
|
|
private GameObject playerlessHands;
|
|
|
|
// Token: 0x04000AB1 RID: 2737
|
|
private float BLIDKBGBBJH = 2f;
|
|
|
|
// Token: 0x04000AB2 RID: 2738
|
|
[SerializeField]
|
|
private Text instructionText;
|
|
|
|
// Token: 0x04000AB3 RID: 2739
|
|
[SerializeField]
|
|
private Image instructionImage;
|
|
|
|
// Token: 0x04000AB4 RID: 2740
|
|
public static readonly string CALIBRATION_STATE_PREF = "RoomCalibrationState";
|
|
|
|
// Token: 0x04000AB5 RID: 2741
|
|
public static readonly string CALIBRATION_HEIGHT_PREF = "CameraOffsetHeight";
|
|
|
|
// Token: 0x04000AB6 RID: 2742
|
|
public static readonly string CALIBRATION_DEPTH_PREF = "CameraOffsetDepth";
|
|
|
|
// Token: 0x04000AB7 RID: 2743
|
|
public static readonly string CALIBRATION_OFFCENTER_PREF = "CameraOffsetOffcenter";
|
|
|
|
// Token: 0x04000AB8 RID: 2744
|
|
private const float JHFPABFPHBM = 2f;
|
|
|
|
// Token: 0x04000AB9 RID: 2745
|
|
private const float FIOCPBFMAEG = 1f;
|
|
|
|
// Token: 0x04000ABA RID: 2746
|
|
private RoomCalibration.NCJJNMHNFHE IHLGIDABOLB = RoomCalibration.NCJJNMHNFHE.Invalid;
|
|
|
|
// Token: 0x04000ABB RID: 2747
|
|
private RoomCalibration.NCJJNMHNFHE HAHNIBHNNII = RoomCalibration.NCJJNMHNFHE.Invalid;
|
|
|
|
// Token: 0x04000ABC RID: 2748
|
|
private Vector3 LDFEHELBGAO;
|
|
|
|
// Token: 0x04000ABD RID: 2749
|
|
private float OBANDBIAKOB;
|
|
|
|
// Token: 0x04000ABE RID: 2750
|
|
private bool JPJLCHMAHNA;
|
|
|
|
// Token: 0x04000ABF RID: 2751
|
|
private float ABBMNJGMODF;
|
|
|
|
// Token: 0x020001A4 RID: 420
|
|
[Serializable]
|
|
public struct CalibrationInstruction
|
|
{
|
|
// Token: 0x04000AC0 RID: 2752
|
|
public RoomCalibration.NCJJNMHNFHE state;
|
|
|
|
// Token: 0x04000AC1 RID: 2753
|
|
public string instructionText;
|
|
|
|
// Token: 0x04000AC2 RID: 2754
|
|
public Sprite instructionSprite;
|
|
}
|
|
|
|
// Token: 0x020001A5 RID: 421
|
|
public enum NCJJNMHNFHE
|
|
{
|
|
// Token: 0x04000AC4 RID: 2756
|
|
Invalid = -1,
|
|
// Token: 0x04000AC5 RID: 2757
|
|
Started,
|
|
// Token: 0x04000AC6 RID: 2758
|
|
Height,
|
|
// Token: 0x04000AC7 RID: 2759
|
|
Verification,
|
|
// Token: 0x04000AC8 RID: 2760
|
|
Warning,
|
|
// Token: 0x04000AC9 RID: 2761
|
|
Finished,
|
|
// Token: 0x04000ACA RID: 2762
|
|
ConfirmStanding
|
|
}
|
|
}
|
|
}
|