98 lines
3.3 KiB
C#
98 lines
3.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000650 RID: 1616
|
|
[Token(Token = "0x2000650")]
|
|
[StructLayout(3)]
|
|
public class AnimateInOutManager : SingletonMonoBehaviour<AnimateInOutManager>
|
|
{
|
|
// Token: 0x06002EE6 RID: 12006 RVA: 0x000C2B1C File Offset: 0x000C0D1C
|
|
[Token(Token = "0x6002EE6")]
|
|
[Address(RVA = "0x1D45AB0", Offset = "0x1D444B0", VA = "0x181D45AB0", Slot = "4")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
ActionEvent preLoadSceneAssetsEvent = Player.PreLoadSceneAssetsEvent;
|
|
Action action = new Action(this.IAOBCLNNEPO);
|
|
Player.PreLoadSceneAssetsEvent = preLoadSceneAssetsEvent + action;
|
|
}
|
|
|
|
// Token: 0x06002EE7 RID: 12007 RVA: 0x000C2B50 File Offset: 0x000C0D50
|
|
[Token(Token = "0x6002EE7")]
|
|
[Address(RVA = "0x1D45C00", Offset = "0x1D44600", VA = "0x181D45C00", Slot = "5")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
ActionEvent preLoadSceneAssetsEvent = Player.PreLoadSceneAssetsEvent;
|
|
Action action = new Action(this.IAOBCLNNEPO);
|
|
Player.PreLoadSceneAssetsEvent = preLoadSceneAssetsEvent - action;
|
|
}
|
|
|
|
// Token: 0x06002EE8 RID: 12008 RVA: 0x000C2B84 File Offset: 0x000C0D84
|
|
[Token(Token = "0x6002EE8")]
|
|
[Address(RVA = "0x1D45B80", Offset = "0x1D44580", VA = "0x181D45B80")]
|
|
private void IAOBCLNNEPO()
|
|
{
|
|
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
|
|
PooledParticle defaultEffectPrefab = this.DefaultEffectPrefab;
|
|
instance.Prefill<PooledParticle>(defaultEffectPrefab, 6);
|
|
}
|
|
|
|
// Token: 0x06002EE9 RID: 12009 RVA: 0x000C2BB0 File Offset: 0x000C0DB0
|
|
[Token(Token = "0x6002EE9")]
|
|
[Address(RVA = "0x1D45CD0", Offset = "0x1D446D0", VA = "0x181D45CD0")]
|
|
public static void PlayOneOff(Bounds PDPPMFNOBMO)
|
|
{
|
|
if (!SingletonMonoBehaviour.Instance.SuppressAnimations)
|
|
{
|
|
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
|
|
PooledParticle defaultEffectPrefab = SingletonMonoBehaviour.Instance.DefaultEffectPrefab;
|
|
PooledParticle pooledParticle = instance.Acquire<PooledParticle>(defaultEffectPrefab);
|
|
int num = 0;
|
|
if (pooledParticle != num)
|
|
{
|
|
Transform transform = pooledParticle.transform;
|
|
Transform transform2 = SingletonMonoBehaviour.Instance.transform;
|
|
transform.parentInternal = transform2;
|
|
Transform transform3 = pooledParticle.transform;
|
|
ParticleSystem.MainModule main = pooledParticle.<OAIDPPDMCPA>k__BackingField.main;
|
|
throw new MissingMethodException();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002EEA RID: 12010 RVA: 0x000C2C8C File Offset: 0x000C0E8C
|
|
[Token(Token = "0x6002EEA")]
|
|
[Address(RVA = "0xEDAA20", Offset = "0xED9420", VA = "0x180EDAA20")]
|
|
private void OnApplicationQuit()
|
|
{
|
|
this.SuppressAnimations = true;
|
|
}
|
|
|
|
// Token: 0x06002EEB RID: 12011 RVA: 0x000C2CA0 File Offset: 0x000C0EA0
|
|
[Token(Token = "0x6002EEB")]
|
|
[Address(RVA = "0x1D460F0", Offset = "0x1D44AF0", VA = "0x181D460F0")]
|
|
public AnimateInOutManager()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04002843 RID: 10307
|
|
[Token(Token = "0x4002843")]
|
|
private const float HEDLFBLIBMJ = 0.2f;
|
|
|
|
// Token: 0x04002844 RID: 10308
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002844")]
|
|
public PooledParticle DefaultEffectPrefab;
|
|
|
|
// Token: 0x04002845 RID: 10309
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4002845")]
|
|
[NonSerialized]
|
|
public bool SuppressAnimations = true;
|
|
}
|