Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/RecRoom/PlayerTypeDeactivateObject.cs
T
2026-04-08 23:40:05 +02:00

109 lines
3.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom
{
// Token: 0x02001DE4 RID: 7652
[Token(Token = "0x2001DE4")]
[StructLayout(3)]
public class PlayerTypeDeactivateObject : MonoBehaviour
{
// Token: 0x0600CE3D RID: 52797 RVA: 0x0031052C File Offset: 0x0030E72C
[Token(Token = "0x600CE3D")]
[Address(RVA = "0x141D430", Offset = "0x141BE30", VA = "0x18141D430")]
private void Awake()
{
while (this.playerTypes.Length != 0)
{
LocalPlayerController instance = SingletonMonoBehaviour.Instance;
Action currentPlayerTypeChange = instance.CurrentPlayerTypeChange;
Action action = new Action(this.MKBLJJGJAOH);
Delegate @delegate = Delegate.Combine(currentPlayerTypeChange, action);
if (@delegate == 0 || @delegate != 0)
{
instance.CurrentPlayerTypeChange = @delegate;
LocalPlayerController instance2 = SingletonMonoBehaviour.Instance;
int num = 0;
if (instance2 != num)
{
GameObject gameObject = base.gameObject;
int num2 = 0;
if (gameObject != num2)
{
LocalPlayerController.JJKKCDNKBJI[] array = this.playerTypes;
LocalPlayerController instance3 = SingletonMonoBehaviour.Instance;
GameObject gameObject2 = base.gameObject;
bool flag2;
bool flag = !flag2;
gameObject2.SetActive(flag);
}
}
return;
}
}
Debug.LogWarning("PlayerTypeDeactivateObject requires at least one player type.");
}
// Token: 0x0600CE3E RID: 52798 RVA: 0x003105E0 File Offset: 0x0030E7E0
[Token(Token = "0x600CE3E")]
[Address(RVA = "0x141D7D0", Offset = "0x141C1D0", VA = "0x18141D7D0")]
private void OnDestroy()
{
LocalPlayerController instance2;
Delegate @delegate;
do
{
LocalPlayerController instance = SingletonMonoBehaviour.Instance;
int num = 0;
if (!(instance != num))
{
return;
}
instance2 = SingletonMonoBehaviour.Instance;
Action currentPlayerTypeChange = instance2.CurrentPlayerTypeChange;
Action action = new Action(this.MKBLJJGJAOH);
@delegate = Delegate.Remove(currentPlayerTypeChange, action);
}
while (@delegate != 0 && @delegate == 0);
instance2.CurrentPlayerTypeChange = @delegate;
}
// Token: 0x0600CE3F RID: 52799 RVA: 0x0031063C File Offset: 0x0030E83C
[Token(Token = "0x600CE3F")]
[Address(RVA = "0x141D690", Offset = "0x141C090", VA = "0x18141D690")]
private void MKBLJJGJAOH()
{
LocalPlayerController instance = SingletonMonoBehaviour.Instance;
int num = 0;
if (instance != num)
{
GameObject gameObject = base.gameObject;
int num2 = 0;
if (gameObject != num2)
{
LocalPlayerController.JJKKCDNKBJI[] array = this.playerTypes;
LocalPlayerController instance2 = SingletonMonoBehaviour.Instance;
GameObject gameObject2 = base.gameObject;
bool flag2;
bool flag = !flag2;
gameObject2.SetActive(flag);
}
}
}
// Token: 0x0600CE40 RID: 52800 RVA: 0x0031069C File Offset: 0x0030E89C
[Token(Token = "0x600CE40")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public PlayerTypeDeactivateObject()
{
}
// Token: 0x04008B26 RID: 35622
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4008B26")]
public LocalPlayerController.JJKKCDNKBJI[] playerTypes;
}
}