Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/PlayerTypeDeactivateObject.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

107 lines
3.2 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom
{
// Token: 0x0200226B RID: 8811
[Token(Token = "0x200226B")]
public class PlayerTypeDeactivateObject : MonoBehaviour
{
// Token: 0x0600E04F RID: 57423 RVA: 0x0033AEB4 File Offset: 0x003390B4
[Token(Token = "0x600E04F")]
[Address(RVA = "0x19EC3D0", Offset = "0x19EB3D0", VA = "0x1819EC3D0")]
private void Awake()
{
while (this.playerTypes.Length != 0)
{
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
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.ONCPNMDGGKG;
int num = 0;
if (instance2 != num)
{
GameObject gameObject = base.gameObject;
int num2 = 0;
if (gameObject != num2)
{
LocalPlayerController.JJKKCDNKBJI[] array = this.playerTypes;
LocalPlayerController instance3 = SingletonMonoBehaviour.ONCPNMDGGKG;
GameObject gameObject2 = base.gameObject;
bool flag2;
bool flag = !flag2;
gameObject2.SetActive(flag);
}
}
return;
}
}
Debug.LogWarning("PlayerTypeDeactivateObject requires at least one player type.");
}
// Token: 0x0600E050 RID: 57424 RVA: 0x0033AF68 File Offset: 0x00339168
[Token(Token = "0x600E050")]
[Address(RVA = "0x19EC770", Offset = "0x19EB770", VA = "0x1819EC770")]
private void OnDestroy()
{
LocalPlayerController instance2;
Delegate @delegate;
do
{
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
int num = 0;
if (!(instance != num))
{
return;
}
instance2 = SingletonMonoBehaviour.ONCPNMDGGKG;
Action currentPlayerTypeChange = instance2.CurrentPlayerTypeChange;
Action action = new Action(this.MKBLJJGJAOH);
@delegate = Delegate.Remove(currentPlayerTypeChange, action);
}
while (@delegate != 0 && @delegate == 0);
instance2.CurrentPlayerTypeChange = @delegate;
}
// Token: 0x0600E051 RID: 57425 RVA: 0x0033AFC4 File Offset: 0x003391C4
[Token(Token = "0x600E051")]
[Address(RVA = "0x19EC630", Offset = "0x19EB630", VA = "0x1819EC630")]
private void MKBLJJGJAOH()
{
LocalPlayerController instance = SingletonMonoBehaviour.ONCPNMDGGKG;
int num = 0;
if (instance != num)
{
GameObject gameObject = base.gameObject;
int num2 = 0;
if (gameObject != num2)
{
LocalPlayerController.JJKKCDNKBJI[] array = this.playerTypes;
LocalPlayerController instance2 = SingletonMonoBehaviour.ONCPNMDGGKG;
GameObject gameObject2 = base.gameObject;
bool flag2;
bool flag = !flag2;
gameObject2.SetActive(flag);
}
}
}
// Token: 0x0600E052 RID: 57426 RVA: 0x0033B024 File Offset: 0x00339224
[Token(Token = "0x600E052")]
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
public PlayerTypeDeactivateObject()
{
}
// Token: 0x0400915D RID: 37213
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400915D")]
public LocalPlayerController.JJKKCDNKBJI[] playerTypes;
}
}