148 lines
4.2 KiB
C#
148 lines
4.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using RecRoom.Async;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000228 RID: 552
|
|
[Token(Token = "0x2000228")]
|
|
[StructLayout(3)]
|
|
public class CameraStartPoint : SingletonMonoBehaviour<CameraStartPoint>
|
|
{
|
|
// Token: 0x0600113E RID: 4414 RVA: 0x0004B03C File Offset: 0x0004923C
|
|
[Token(Token = "0x600113E")]
|
|
[Address(RVA = "0x1377650", Offset = "0x1376050", VA = "0x181377650")]
|
|
private void Start()
|
|
{
|
|
LocalPlayerController instance;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
instance = SingletonMonoBehaviour.Instance;
|
|
Action currentPlayerTypeChange = instance.CurrentPlayerTypeChange;
|
|
Action action = new Action(this.CBOJLHAFKEL);
|
|
@delegate = Delegate.Combine(currentPlayerTypeChange, action);
|
|
}
|
|
while (@delegate != 0 && @delegate == 0);
|
|
instance.CurrentPlayerTypeChange = @delegate;
|
|
if (!RoomCalibration.LMKDCCDNALK)
|
|
{
|
|
if (RoomCalibration.HKDECKKGKCL)
|
|
{
|
|
RoomCalibration.LoadRoomCalibration();
|
|
}
|
|
return;
|
|
}
|
|
PlatformManager instance2 = SingletonMonoBehaviour.Instance;
|
|
IPromise<bool?> promise;
|
|
if (promise != (ulong)2L)
|
|
{
|
|
}
|
|
float z = this.PS4.z;
|
|
Transform transform = SingletonMonoBehaviour.Instance.transform;
|
|
CameraStartPoint.UpdateChaperonePosition();
|
|
}
|
|
|
|
// Token: 0x0600113F RID: 4415 RVA: 0x0004B0D0 File Offset: 0x000492D0
|
|
[Token(Token = "0x600113F")]
|
|
[Address(RVA = "0x1377500", Offset = "0x1375F00", VA = "0x181377500", Slot = "5")]
|
|
protected override void OnDestroy()
|
|
{
|
|
LocalPlayerController instance2;
|
|
Delegate @delegate;
|
|
do
|
|
{
|
|
LocalPlayerController instance = SingletonMonoBehaviour.Instance;
|
|
int num = 0;
|
|
if (!(instance != num))
|
|
{
|
|
goto IL_49;
|
|
}
|
|
instance2 = SingletonMonoBehaviour.Instance;
|
|
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: 0x06001140 RID: 4416 RVA: 0x0004B134 File Offset: 0x00049334
|
|
[Token(Token = "0x6001140")]
|
|
[Address(RVA = "0x1377360", Offset = "0x1375D60", VA = "0x181377360")]
|
|
private void CBOJLHAFKEL()
|
|
{
|
|
if (RoomCalibration.LMKDCCDNALK)
|
|
{
|
|
PlatformManager instance = SingletonMonoBehaviour.Instance;
|
|
IPromise<bool?> promise;
|
|
if (promise != (ulong)2L)
|
|
{
|
|
float z = this.Default.z;
|
|
}
|
|
Transform transform = SingletonMonoBehaviour.Instance.transform;
|
|
CameraStartPoint.UpdateChaperonePosition();
|
|
return;
|
|
}
|
|
if (RoomCalibration.HKDECKKGKCL)
|
|
{
|
|
RoomCalibration.LoadRoomCalibration();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001141 RID: 4417 RVA: 0x0004B194 File Offset: 0x00049394
|
|
[Token(Token = "0x6001141")]
|
|
[Address(RVA = "0x1377BD0", Offset = "0x13765D0", VA = "0x181377BD0")]
|
|
public static void UpdateOffset(Vector3 KFPLEFELPCM)
|
|
{
|
|
Transform transform = SingletonMonoBehaviour.Instance.transform;
|
|
float z = KFPLEFELPCM.z;
|
|
CameraStartPoint.UpdateChaperonePosition();
|
|
}
|
|
|
|
// Token: 0x06001142 RID: 4418 RVA: 0x0004B1C0 File Offset: 0x000493C0
|
|
[Token(Token = "0x6001142")]
|
|
[Address(RVA = "0x13778C0", Offset = "0x13762C0", VA = "0x1813778C0")]
|
|
public static void UpdateChaperonePosition()
|
|
{
|
|
if (SingletonMonoBehaviour.IsInitialized && RoomCalibration.HKDECKKGKCL)
|
|
{
|
|
float z = RoomCalibration.GetTrackerWorldPosition().z;
|
|
Transform transform = SingletonMonoBehaviour.Instance.transform;
|
|
Vector3 vector;
|
|
float z2 = vector.z;
|
|
Vector3 vector2;
|
|
float z3 = vector2.z;
|
|
Transform transform2 = SingletonMonoBehaviour.Instance.transform;
|
|
Vector3 vector3;
|
|
float z4 = vector3.z;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001143 RID: 4419 RVA: 0x0004B224 File Offset: 0x00049424
|
|
[Token(Token = "0x6001143")]
|
|
[Address(RVA = "0x1377C70", Offset = "0x1376670", VA = "0x181377C70")]
|
|
public CameraStartPoint()
|
|
{
|
|
float z = Vector3.zero.z;
|
|
this.Default.z = z;
|
|
int num = 0;
|
|
this.PS4.z = (float)num;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x04000DB9 RID: 3513
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000DB9")]
|
|
public Vector3 Default;
|
|
|
|
// Token: 0x04000DBA RID: 3514
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4000DBA")]
|
|
public Vector3 PS4;
|
|
}
|