147 lines
4.3 KiB
C#
147 lines
4.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200021A RID: 538
|
|
[Token(Token = "0x200021A")]
|
|
public class CameraStartPoint : SingletonMonoBehaviour<CameraStartPoint>
|
|
{
|
|
// Token: 0x060010E4 RID: 4324 RVA: 0x00049558 File Offset: 0x00047758
|
|
[Token(Token = "0x60010E4")]
|
|
[Address(RVA = "0x165BCE0", Offset = "0x165ACE0", VA = "0x18165BCE0")]
|
|
private void Start()
|
|
{
|
|
LocalPlayerController instance;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action currentPlayerTypeChange = instance.CurrentPlayerTypeChange;
|
|
Action action = new Action(this.CBOJLHAFKEL);
|
|
@delegate = Delegate.Combine(currentPlayerTypeChange, action);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
instance.CurrentPlayerTypeChange = @delegate;
|
|
this.CBOJLHAFKEL();
|
|
}
|
|
|
|
// Token: 0x060010E5 RID: 4325 RVA: 0x000495A4 File Offset: 0x000477A4
|
|
[Token(Token = "0x60010E5")]
|
|
[Address(RVA = "0x165BB10", Offset = "0x165AB10", VA = "0x18165BB10", Slot = "5")]
|
|
protected override void OnDestroy()
|
|
{
|
|
LocalPlayerController instance2;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
int num = 0;
|
|
if (!(instance != num))
|
|
{
|
|
goto IL_49;
|
|
}
|
|
instance2 = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
Action currentPlayerTypeChange = instance2.CurrentPlayerTypeChange;
|
|
Action action = new Action(this.CBOJLHAFKEL);
|
|
@delegate = Delegate.Remove(currentPlayerTypeChange, action);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
instance2.CurrentPlayerTypeChange = @delegate;
|
|
IL_49:
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x060010E6 RID: 4326 RVA: 0x00049608 File Offset: 0x00047808
|
|
[Token(Token = "0x60010E6")]
|
|
[Address(RVA = "0x165B930", Offset = "0x165A930", VA = "0x18165B930")]
|
|
private void AJFAJBJALGF()
|
|
{
|
|
PlatformManager instance = SingletonMonoBehaviour.ONCPNMDGGKG;
|
|
PMGCJEPKFOF<PlatformManager.LKOLCLKDJKO> pmgcjepkfof;
|
|
if (pmgcjepkfof != (ulong)2L)
|
|
{
|
|
}
|
|
float z = this.PS4.z;
|
|
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.transform;
|
|
CameraStartPoint.UpdateChaperonePosition();
|
|
}
|
|
|
|
// Token: 0x060010E7 RID: 4327 RVA: 0x00049648 File Offset: 0x00047848
|
|
[Token(Token = "0x60010E7")]
|
|
[Address(RVA = "0x165BA50", Offset = "0x165AA50", VA = "0x18165BA50")]
|
|
private void CBOJLHAFKEL()
|
|
{
|
|
if (RoomCalibration.LMKDCCDNALK)
|
|
{
|
|
this.AJFAJBJALGF();
|
|
return;
|
|
}
|
|
if (RoomCalibration.HKDECKKGKCL)
|
|
{
|
|
RoomCalibration.LoadRoomCalibration();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010E8 RID: 4328 RVA: 0x00049678 File Offset: 0x00047878
|
|
[Token(Token = "0x60010E8")]
|
|
[Address(RVA = "0x165BC60", Offset = "0x165AC60", VA = "0x18165BC60")]
|
|
public static void ResetOffset()
|
|
{
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.AJFAJBJALGF();
|
|
SingletonMonoBehaviour.ONCPNMDGGKG.CBOJLHAFKEL();
|
|
}
|
|
|
|
// Token: 0x060010E9 RID: 4329 RVA: 0x000496A0 File Offset: 0x000478A0
|
|
[Token(Token = "0x60010E9")]
|
|
[Address(RVA = "0x165C0E0", Offset = "0x165B0E0", VA = "0x18165C0E0")]
|
|
public static void UpdateOffset(Vector3 KFPLEFELPCM)
|
|
{
|
|
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.transform;
|
|
float z = KFPLEFELPCM.z;
|
|
CameraStartPoint.UpdateChaperonePosition();
|
|
}
|
|
|
|
// Token: 0x060010EA RID: 4330 RVA: 0x000496CC File Offset: 0x000478CC
|
|
[Token(Token = "0x60010EA")]
|
|
[Address(RVA = "0x165BDD0", Offset = "0x165ADD0", VA = "0x18165BDD0")]
|
|
public static void UpdateChaperonePosition()
|
|
{
|
|
if (SingletonMonoBehaviour.FFNIFALJLDD && RoomCalibration.HKDECKKGKCL)
|
|
{
|
|
float z = RoomCalibration.GetTrackerWorldPosition().z;
|
|
Transform transform = SingletonMonoBehaviour.ONCPNMDGGKG.transform;
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
Vector3 vector2;
|
|
float z3 = vector2.z;
|
|
Transform transform2 = SingletonMonoBehaviour.ONCPNMDGGKG.transform;
|
|
Vector3 vector3;
|
|
float z4 = vector3.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060010EB RID: 4331 RVA: 0x00049730 File Offset: 0x00047930
|
|
[Token(Token = "0x60010EB")]
|
|
[Address(RVA = "0x165C180", Offset = "0x165B180", VA = "0x18165C180")]
|
|
public CameraStartPoint()
|
|
{
|
|
float z = Vector3.zero.z;
|
|
this.Default.z = z;
|
|
int num = 0;
|
|
this.PS4.z = (float)num;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04000D7C RID: 3452
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000D7C")]
|
|
public Vector3 Default;
|
|
|
|
// Token: 0x04000D7D RID: 3453
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4000D7D")]
|
|
public Vector3 PS4;
|
|
}
|