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

64 lines
1.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Core
{
// Token: 0x020027C5 RID: 10181
[Token(Token = "0x20027C5")]
[StructLayout(3)]
public class PlatformDisableComponents : MonoBehaviour
{
// Token: 0x06011D4B RID: 73035 RVA: 0x004423D4 File Offset: 0x004405D4
[Token(Token = "0x6011D4B")]
[Address(RVA = "0x19AAE60", Offset = "0x19A9860", VA = "0x1819AAE60")]
private void Awake()
{
if (this.platforms.Length != 0)
{
if (this.components.Length != 0)
{
PlatformManager instance = SingletonMonoBehaviour.Instance;
bool flag;
if (!flag)
{
return;
}
Behaviour[] array = this.components;
int num = 0;
if (num >= array.Length)
{
return;
}
Behaviour behaviour = array[num];
int num2 = 0;
behaviour.enabled = num2 != 0;
Behaviour[] array2 = this.components;
num++;
}
Debug.LogError("PlatformDisableComponents requires at least one specified component.");
return;
}
Debug.LogError("PlatformDisableComponents requires at least one specified platform.");
}
// Token: 0x06011D4C RID: 73036 RVA: 0x0044245C File Offset: 0x0044065C
[Token(Token = "0x6011D4C")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public PlatformDisableComponents()
{
}
// Token: 0x0400BEEB RID: 48875
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400BEEB")]
public PlatformManager.FCIKKFJOMNO[] platforms;
// Token: 0x0400BEEC RID: 48876
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400BEEC")]
public Behaviour[] components;
}
}