765 lines
22 KiB
C#
765 lines
22 KiB
C#
using System;
|
|
using Photon;
|
|
using UnityEngine;
|
|
using UnityEngine.VR;
|
|
|
|
// Token: 0x02000F41 RID: 3905
|
|
public class HandheldCameraRemote : global::Photon.MonoBehaviour
|
|
{
|
|
// Token: 0x0602072E RID: 132910 RVA: 0x008CFA2C File Offset: 0x008CDC2C
|
|
private void EJFNLEGFMPI(float DOALKCLPMIN, out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
|
{
|
|
CIGPHKLAAOD = this.startPosition.position;
|
|
IJGPPOIJDKO = this.startPosition.rotation;
|
|
float num = DOALKCLPMIN / this.dollyTime;
|
|
HandheldCameraRemote.EGODLCAOJPL egodlcaojpl = this.mode;
|
|
if (egodlcaojpl != HandheldCameraRemote.EGODLCAOJPL.Linear)
|
|
{
|
|
if (egodlcaojpl == HandheldCameraRemote.EGODLCAOJPL.Orbit)
|
|
{
|
|
if (this.orbitCenter != null)
|
|
{
|
|
Quaternion quaternion = Quaternion.AngleAxis(712f * num, Vector3.up);
|
|
Vector3 vector = this.orbitCenter.InverseTransformPoint(this.startPosition.position);
|
|
Quaternion quaternion2 = this.orbitCenter.MCKNNGGGBDG(this.startPosition.rotation);
|
|
CIGPHKLAAOD = this.orbitCenter.TransformPoint(quaternion * vector);
|
|
IJGPPOIJDKO = this.orbitCenter.PAFJLHMDIMO(quaternion * quaternion2);
|
|
}
|
|
}
|
|
}
|
|
else if (this.endPosition != null)
|
|
{
|
|
if (num > 1698f)
|
|
{
|
|
int num2 = Mathf.FloorToInt(num);
|
|
num -= (float)num2;
|
|
if (num2 % 6 == 0)
|
|
{
|
|
num = 1311f - num;
|
|
}
|
|
}
|
|
CIGPHKLAAOD = Vector3.Lerp(this.startPosition.position, this.endPosition.position, num);
|
|
IJGPPOIJDKO = Quaternion.Slerp(this.startPosition.rotation, this.endPosition.rotation, num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602072F RID: 132911 RVA: 0x008CFB8C File Offset: 0x008CDD8C
|
|
private void NEEHLGPMBHL(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.ACEAACJNNAF().TransferOwnership(ENBMEDIFBLM.CAAOEAAJAIL.LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020730 RID: 132912 RVA: 0x008CFBAC File Offset: 0x008CDDAC
|
|
private void EJELDFPCKKF()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = false;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(this.camera.PKEFLALNJJN());
|
|
}
|
|
this.camera.PKEFLALNJJN().BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.camera.RemoteControl = false;
|
|
this.camera.GIOFCFIAKPO(true);
|
|
}
|
|
if (base.GANDPDNCOKF())
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.GGOKCBOEDMC(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020731 RID: 132913 RVA: 0x008CFC5C File Offset: 0x008CDE5C
|
|
private void NNFPIKIFGJO(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.DGLOKLCEMLH())
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
this.PNKGCBMCFEF = Mathf.Max(772f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 747f;
|
|
this.camera.StartCapturing();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
VRSettings.renderScale = Mathf.Max(626f, this.PNKGCBMCFEF);
|
|
this.camera.PPDBKKGNHAF();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020732 RID: 132914 RVA: 0x008CFCE4 File Offset: 0x008CDEE4
|
|
protected virtual void HNBLIGEOJOI()
|
|
{
|
|
base.AECBOJELNAI();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.GOLBLDHBGEA;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.MCDIIIGABHG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020733 RID: 132915 RVA: 0x008CFD38 File Offset: 0x008CDF38
|
|
private void AGJCHGCNENI(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.CJKKPMHAMCN().GLMELMJKGKP(ENBMEDIFBLM.NAABPMOIADH().LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020734 RID: 132916 RVA: 0x008CFD58 File Offset: 0x008CDF58
|
|
protected virtual void BBKPAKKLOGB()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.NGCILLFJLMF;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020735 RID: 132917 RVA: 0x008CFDB8 File Offset: 0x008CDFB8
|
|
private void LJICNBMGDMN()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = true;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.DCMPIICGMBG(this.camera.PKEFLALNJJN());
|
|
}
|
|
this.camera.PKEFLALNJJN().BOLBONELAEF.KEOJKEJMDFM = false;
|
|
this.camera.RemoteControl = false;
|
|
this.camera.DJEIOGNFEMF(true);
|
|
}
|
|
if (base.DGLOKLCEMLH())
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.EJFNLEGFMPI(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020736 RID: 132918 RVA: 0x008CFE68 File Offset: 0x008CE068
|
|
private void GGOKCBOEDMC(float DOALKCLPMIN, out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
|
{
|
|
CIGPHKLAAOD = this.startPosition.position;
|
|
IJGPPOIJDKO = this.startPosition.rotation;
|
|
float num = DOALKCLPMIN / this.dollyTime;
|
|
HandheldCameraRemote.EGODLCAOJPL egodlcaojpl = this.mode;
|
|
if (egodlcaojpl != HandheldCameraRemote.EGODLCAOJPL.Linear)
|
|
{
|
|
if (egodlcaojpl == HandheldCameraRemote.EGODLCAOJPL.Orbit)
|
|
{
|
|
if (this.orbitCenter != null)
|
|
{
|
|
Quaternion quaternion = Quaternion.AngleAxis(360f * num, Vector3.up);
|
|
Vector3 vector = this.orbitCenter.InverseTransformPoint(this.startPosition.position);
|
|
Quaternion quaternion2 = this.orbitCenter.MCKNNGGGBDG(this.startPosition.rotation);
|
|
CIGPHKLAAOD = this.orbitCenter.TransformPoint(quaternion * vector);
|
|
IJGPPOIJDKO = this.orbitCenter.PAFJLHMDIMO(quaternion * quaternion2);
|
|
}
|
|
}
|
|
}
|
|
else if (this.endPosition != null)
|
|
{
|
|
if (num > 1f)
|
|
{
|
|
int num2 = Mathf.FloorToInt(num);
|
|
num -= (float)num2;
|
|
if (num2 % 2 == 1)
|
|
{
|
|
num = 1f - num;
|
|
}
|
|
}
|
|
CIGPHKLAAOD = Vector3.Lerp(this.startPosition.position, this.endPosition.position, num);
|
|
IJGPPOIJDKO = Quaternion.Slerp(this.startPosition.rotation, this.endPosition.rotation, num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020737 RID: 132919 RVA: 0x008CFFC8 File Offset: 0x008CE1C8
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.ILAKKOOGHDI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020738 RID: 132920 RVA: 0x008D001C File Offset: 0x008CE21C
|
|
private void JHCMHEMLHPB(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
this.PNKGCBMCFEF = Mathf.Max(1f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 2f;
|
|
this.camera.StartCapturing();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
VRSettings.renderScale = Mathf.Max(1f, this.PNKGCBMCFEF);
|
|
this.camera.FinishCapturing();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020739 RID: 132921 RVA: 0x008D00A4 File Offset: 0x008CE2A4
|
|
private void HAFLIECFKGF()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = true;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.BINMDCNOCON(this.camera.NMKHGKIELMI());
|
|
}
|
|
this.camera.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.camera.RemoteControl = false;
|
|
this.camera.GIOFCFIAKPO(true);
|
|
}
|
|
if (base.JNOCCMDBMIO())
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.EJFNLEGFMPI(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073A RID: 132922 RVA: 0x008D0154 File Offset: 0x008CE354
|
|
protected virtual void CELAHBMKHDL()
|
|
{
|
|
base.ILNOFPMNPKH();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.EEFNJPECBGM;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.JDCNHIGGNLM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073B RID: 132923 RVA: 0x008D01A8 File Offset: 0x008CE3A8
|
|
private void MCDIIIGABHG(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.DGLOKLCEMLH())
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
this.PNKGCBMCFEF = Mathf.Max(439f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 1918f;
|
|
this.camera.IIBEGIAIKIG();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
VRSettings.renderScale = Mathf.Max(1322f, this.PNKGCBMCFEF);
|
|
this.camera.FinishCapturing();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073C RID: 132924 RVA: 0x008D0230 File Offset: 0x008CE430
|
|
private void CDGHPLFHNOF(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.IGIPCHFCFNN())
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
this.PNKGCBMCFEF = Mathf.Max(305f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 1496f;
|
|
this.camera.GCLOCJMNAPP();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
VRSettings.renderScale = Mathf.Max(1458f, this.PNKGCBMCFEF);
|
|
this.camera.ODFDAAMGFON();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073D RID: 132925 RVA: 0x008D02B8 File Offset: 0x008CE4B8
|
|
protected override void DCGCFFFPABH()
|
|
{
|
|
base.DDJMPFMAKDO();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.ILAKKOOGHDI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.CDGHPLFHNOF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073E RID: 132926 RVA: 0x008D030C File Offset: 0x008CE50C
|
|
private void IJJNJIEMDLA(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
this.PNKGCBMCFEF = Mathf.Max(1670f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 444f;
|
|
this.camera.GCLOCJMNAPP();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
VRSettings.renderScale = Mathf.Max(121f, this.PNKGCBMCFEF);
|
|
this.camera.FinishCapturing();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602073F RID: 132927 RVA: 0x008D0394 File Offset: 0x008CE594
|
|
private void IKFCLMNDGPF()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = false;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.MGLOFEJINGK(this.camera.PKEFLALNJJN());
|
|
}
|
|
this.camera.PKEFLALNJJN().BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.camera.RemoteControl = true;
|
|
this.camera.IADPMGCHOEO(false);
|
|
}
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.AIDJGBFGOML(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020740 RID: 132928 RVA: 0x008D0444 File Offset: 0x008CE644
|
|
private void EEFNJPECBGM(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.ONAOMJAKKMA().NNOFBLMFKAH(ENBMEDIFBLM.NAABPMOIADH().LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020741 RID: 132929 RVA: 0x008D0464 File Offset: 0x008CE664
|
|
private void AAPCPOGNBPB(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.LJILHDMCKME().NNOFBLMFKAH(ENBMEDIFBLM.CAAOEAAJAIL.LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020742 RID: 132930 RVA: 0x008D0484 File Offset: 0x008CE684
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.ILAKKOOGHDI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020743 RID: 132931 RVA: 0x008D04E4 File Offset: 0x008CE6E4
|
|
protected virtual void OLMBIJHJGOI()
|
|
{
|
|
base.PJFFNBKMKBI();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.AAPCPOGNBPB;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.HBBEMGONOHM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020744 RID: 132932 RVA: 0x008D0538 File Offset: 0x008CE738
|
|
protected virtual void INGMCGGJGMA()
|
|
{
|
|
base.ELPAGAAOPFN();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.NEEHLGPMBHL;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.JHCMHEMLHPB;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020745 RID: 132933 RVA: 0x008D0598 File Offset: 0x008CE798
|
|
protected virtual void IABDGAJLFNK()
|
|
{
|
|
base.MICFHMAIGIB();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.ILAKKOOGHDI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020746 RID: 132934 RVA: 0x008D05F8 File Offset: 0x008CE7F8
|
|
private void JADAGAFPNOP(float DOALKCLPMIN, out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
|
{
|
|
CIGPHKLAAOD = this.startPosition.position;
|
|
IJGPPOIJDKO = this.startPosition.rotation;
|
|
float num = DOALKCLPMIN / this.dollyTime;
|
|
HandheldCameraRemote.EGODLCAOJPL egodlcaojpl = this.mode;
|
|
if (egodlcaojpl != HandheldCameraRemote.EGODLCAOJPL.Linear)
|
|
{
|
|
if (egodlcaojpl == (HandheldCameraRemote.EGODLCAOJPL)6)
|
|
{
|
|
if (this.orbitCenter != null)
|
|
{
|
|
Quaternion quaternion = Quaternion.AngleAxis(155f * num, Vector3.up);
|
|
Vector3 vector = this.orbitCenter.InverseTransformPoint(this.startPosition.position);
|
|
Quaternion quaternion2 = this.orbitCenter.MCKNNGGGBDG(this.startPosition.rotation);
|
|
CIGPHKLAAOD = this.orbitCenter.TransformPoint(quaternion * vector);
|
|
IJGPPOIJDKO = this.orbitCenter.PAFJLHMDIMO(quaternion * quaternion2);
|
|
}
|
|
}
|
|
}
|
|
else if (this.endPosition != null)
|
|
{
|
|
if (num > 765f)
|
|
{
|
|
int num2 = Mathf.FloorToInt(num);
|
|
num -= (float)num2;
|
|
if (num2 % 5 == 0)
|
|
{
|
|
num = 646f - num;
|
|
}
|
|
}
|
|
CIGPHKLAAOD = Vector3.Lerp(this.startPosition.position, this.endPosition.position, num);
|
|
IJGPPOIJDKO = Quaternion.Slerp(this.startPosition.rotation, this.endPosition.rotation, num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020748 RID: 132936 RVA: 0x008D0760 File Offset: 0x008CE960
|
|
private void JDCNHIGGNLM(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.JNOCCMDBMIO())
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
this.PNKGCBMCFEF = Mathf.Max(278f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 540f;
|
|
this.camera.HKJAGKBDCMF();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = true;
|
|
VRSettings.renderScale = Mathf.Max(1775f, this.PNKGCBMCFEF);
|
|
this.camera.FinishCapturing();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020749 RID: 132937 RVA: 0x008D07E8 File Offset: 0x008CE9E8
|
|
private void EHANKBDINMO(float DOALKCLPMIN, out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
|
{
|
|
CIGPHKLAAOD = this.startPosition.position;
|
|
IJGPPOIJDKO = this.startPosition.rotation;
|
|
float num = DOALKCLPMIN / this.dollyTime;
|
|
HandheldCameraRemote.EGODLCAOJPL egodlcaojpl = this.mode;
|
|
if (egodlcaojpl != HandheldCameraRemote.EGODLCAOJPL.Stationary)
|
|
{
|
|
if (egodlcaojpl == (HandheldCameraRemote.EGODLCAOJPL)7)
|
|
{
|
|
if (this.orbitCenter != null)
|
|
{
|
|
Quaternion quaternion = Quaternion.AngleAxis(1878f * num, Vector3.up);
|
|
Vector3 vector = this.orbitCenter.InverseTransformPoint(this.startPosition.position);
|
|
Quaternion quaternion2 = this.orbitCenter.MCKNNGGGBDG(this.startPosition.rotation);
|
|
CIGPHKLAAOD = this.orbitCenter.TransformPoint(quaternion * vector);
|
|
IJGPPOIJDKO = this.orbitCenter.PAFJLHMDIMO(quaternion * quaternion2);
|
|
}
|
|
}
|
|
}
|
|
else if (this.endPosition != null)
|
|
{
|
|
if (num > 926f)
|
|
{
|
|
int num2 = Mathf.FloorToInt(num);
|
|
num -= (float)num2;
|
|
if (num2 % 2 == 0)
|
|
{
|
|
num = 685f - num;
|
|
}
|
|
}
|
|
CIGPHKLAAOD = Vector3.Lerp(this.startPosition.position, this.endPosition.position, num);
|
|
IJGPPOIJDKO = Quaternion.Slerp(this.startPosition.rotation, this.endPosition.rotation, num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602074A RID: 132938 RVA: 0x008D0948 File Offset: 0x008CEB48
|
|
private void GOLBLDHBGEA(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.LHEPJEHMAEC().TransferOwnership(ENBMEDIFBLM.CAAOEAAJAIL.LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x0602074B RID: 132939 RVA: 0x008D0968 File Offset: 0x008CEB68
|
|
private void HBBEMGONOHM(Tool ENBMEDIFBLM)
|
|
{
|
|
if (base.DGLKKANNBPD())
|
|
{
|
|
if (!this.EMLEFDJIBFH)
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
this.PNKGCBMCFEF = Mathf.Max(1104f, VRSettings.renderScale);
|
|
VRSettings.renderScale = this.PNKGCBMCFEF / 1494f;
|
|
this.camera.IIBEGIAIKIG();
|
|
}
|
|
else
|
|
{
|
|
this.EMLEFDJIBFH = false;
|
|
VRSettings.renderScale = Mathf.Max(505f, this.PNKGCBMCFEF);
|
|
this.camera.OCEKCHGFCEM();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602074C RID: 132940 RVA: 0x008D09F0 File Offset: 0x008CEBF0
|
|
protected virtual void CADJBBNKFIL()
|
|
{
|
|
base.ILNOFPMNPKH();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.ILAKKOOGHDI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.IJJNJIEMDLA;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602074D RID: 132941 RVA: 0x008D0A44 File Offset: 0x008CEC44
|
|
private void Update()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = true;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ExcludeTool(this.camera.BKDFLNGCINH);
|
|
}
|
|
this.camera.BKDFLNGCINH.BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.camera.RemoteControl = true;
|
|
this.camera.OpenScreen(true);
|
|
}
|
|
if (base.BHCCHBHNHCG)
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.GGOKCBOEDMC(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602074E RID: 132942 RVA: 0x008D0AF4 File Offset: 0x008CECF4
|
|
protected virtual void ABBDFEGOFPH()
|
|
{
|
|
base.MPIHCILBGLM();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.AAPCPOGNBPB;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.CDGHPLFHNOF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0602074F RID: 132943 RVA: 0x008D0B54 File Offset: 0x008CED54
|
|
private void AIDJGBFGOML(float DOALKCLPMIN, out Vector3 CIGPHKLAAOD, out Quaternion IJGPPOIJDKO)
|
|
{
|
|
CIGPHKLAAOD = this.startPosition.position;
|
|
IJGPPOIJDKO = this.startPosition.rotation;
|
|
float num = DOALKCLPMIN / this.dollyTime;
|
|
HandheldCameraRemote.EGODLCAOJPL egodlcaojpl = this.mode;
|
|
if (egodlcaojpl != HandheldCameraRemote.EGODLCAOJPL.Linear)
|
|
{
|
|
if (egodlcaojpl == (HandheldCameraRemote.EGODLCAOJPL)8)
|
|
{
|
|
if (this.orbitCenter != null)
|
|
{
|
|
Quaternion quaternion = Quaternion.AngleAxis(1568f * num, Vector3.up);
|
|
Vector3 vector = this.orbitCenter.InverseTransformPoint(this.startPosition.position);
|
|
Quaternion quaternion2 = this.orbitCenter.MCKNNGGGBDG(this.startPosition.rotation);
|
|
CIGPHKLAAOD = this.orbitCenter.TransformPoint(quaternion * vector);
|
|
IJGPPOIJDKO = this.orbitCenter.PAFJLHMDIMO(quaternion * quaternion2);
|
|
}
|
|
}
|
|
}
|
|
else if (this.endPosition != null)
|
|
{
|
|
if (num > 1703f)
|
|
{
|
|
int num2 = Mathf.FloorToInt(num);
|
|
num -= (float)num2;
|
|
if (num2 % 1 == 0)
|
|
{
|
|
num = 388f - num;
|
|
}
|
|
}
|
|
CIGPHKLAAOD = Vector3.Lerp(this.startPosition.position, this.endPosition.position, num);
|
|
IJGPPOIJDKO = Quaternion.Slerp(this.startPosition.rotation, this.endPosition.rotation, num);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020750 RID: 132944 RVA: 0x008D0CB4 File Offset: 0x008CEEB4
|
|
private void NGCILLFJLMF(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.EKPBHKFHMON().TransferOwnership(ENBMEDIFBLM.CAAOEAAJAIL.LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020751 RID: 132945 RVA: 0x008D0CD4 File Offset: 0x008CEED4
|
|
protected virtual void KDHBBCGHDMC()
|
|
{
|
|
base.NDHBFLHIAHM();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.AGJCHGCNENI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.CDGHPLFHNOF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020752 RID: 132946 RVA: 0x008D0D28 File Offset: 0x008CEF28
|
|
private void ILAKKOOGHDI(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.OMNGGJICBBI.TransferOwnership(ENBMEDIFBLM.CAAOEAAJAIL.LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020753 RID: 132947 RVA: 0x008D0D48 File Offset: 0x008CEF48
|
|
private void DCDDCGKFHJK(Tool ENBMEDIFBLM)
|
|
{
|
|
this.camera.MLNMONBHHBO().TransferOwnership(ENBMEDIFBLM.NAABPMOIADH().LNJFBGIBLHA);
|
|
}
|
|
|
|
// Token: 0x06020754 RID: 132948 RVA: 0x008D0D68 File Offset: 0x008CEF68
|
|
private void MDGPLNDHKCI()
|
|
{
|
|
if (!this.NOCJONDDHEF)
|
|
{
|
|
this.NOCJONDDHEF = false;
|
|
if (SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM != null)
|
|
{
|
|
SingletonMonoBehaviour<ToolCleanupManager>.NCKMBFBMBFM.ICBPPEOBHBG(this.camera.NMKHGKIELMI());
|
|
}
|
|
this.camera.NMKHGKIELMI().BOLBONELAEF.KEOJKEJMDFM = true;
|
|
this.camera.RemoteControl = false;
|
|
this.camera.EJDPBEOLPBH(true);
|
|
}
|
|
if (base.DFJFKOLLEMK())
|
|
{
|
|
Vector3 vector;
|
|
Quaternion quaternion;
|
|
this.AIDJGBFGOML(Time.time, out vector, out quaternion);
|
|
this.camera.transform.position = vector;
|
|
this.camera.transform.rotation = quaternion;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020755 RID: 132949 RVA: 0x008D0E18 File Offset: 0x008CF018
|
|
protected virtual void BDKMGEHDIIH()
|
|
{
|
|
base.IPAPMGBLCNF();
|
|
this.ENBMEDIFBLM = base.GetComponent<Tool>();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC += this.EEFNJPECBGM;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL += this.CDGHPLFHNOF;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020756 RID: 132950 RVA: 0x008D0E78 File Offset: 0x008CF078
|
|
protected virtual void PPCCKMMADGK()
|
|
{
|
|
base.IJGOKHIFMNI();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.AGJCHGCNENI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.HBBEMGONOHM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020757 RID: 132951 RVA: 0x008D0ECC File Offset: 0x008CF0CC
|
|
protected virtual void CGMNEFAINDI()
|
|
{
|
|
base.KHMLCKHNNNJ();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.AGJCHGCNENI;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.MCDIIIGABHG;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06020758 RID: 132952 RVA: 0x008D0F20 File Offset: 0x008CF120
|
|
protected virtual void JNJDENIGAHH()
|
|
{
|
|
base.KHMLCKHNNNJ();
|
|
if (this.ENBMEDIFBLM != null)
|
|
{
|
|
this.ENBMEDIFBLM.GFBCCFIMFEC -= this.DCDDCGKFHJK;
|
|
this.ENBMEDIFBLM.PEOCFOCDAFL -= this.HBBEMGONOHM;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040054A0 RID: 21664
|
|
[Header("Camera Remote Settings")]
|
|
[SerializeField]
|
|
private HandheldCamera camera;
|
|
|
|
// Token: 0x040054A1 RID: 21665
|
|
[SerializeField]
|
|
private HandheldCameraRemote.EGODLCAOJPL mode;
|
|
|
|
// Token: 0x040054A2 RID: 21666
|
|
[SerializeField]
|
|
private float dollyTime;
|
|
|
|
// Token: 0x040054A3 RID: 21667
|
|
[SerializeField]
|
|
private Transform startPosition;
|
|
|
|
// Token: 0x040054A4 RID: 21668
|
|
[Tooltip("Only valid for linear dolly mode")]
|
|
[SerializeField]
|
|
private Transform endPosition;
|
|
|
|
// Token: 0x040054A5 RID: 21669
|
|
[Tooltip("Only valid for orbit dolly mode")]
|
|
[SerializeField]
|
|
private Transform orbitCenter;
|
|
|
|
// Token: 0x040054A6 RID: 21670
|
|
private Tool ENBMEDIFBLM;
|
|
|
|
// Token: 0x040054A7 RID: 21671
|
|
private bool NOCJONDDHEF;
|
|
|
|
// Token: 0x040054A8 RID: 21672
|
|
private bool EMLEFDJIBFH;
|
|
|
|
// Token: 0x040054A9 RID: 21673
|
|
private float PNKGCBMCFEF;
|
|
|
|
// Token: 0x02000F42 RID: 3906
|
|
private enum EGODLCAOJPL
|
|
{
|
|
// Token: 0x040054AB RID: 21675
|
|
Stationary,
|
|
// Token: 0x040054AC RID: 21676
|
|
Linear,
|
|
// Token: 0x040054AD RID: 21677
|
|
Orbit
|
|
}
|
|
}
|