135 lines
3.5 KiB
C#
135 lines
3.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.StuntRunner
|
|
{
|
|
// Token: 0x02002B9E RID: 11166
|
|
[Token(Token = "0x2002B9E")]
|
|
public class StuntRunnerEndingGate : MonoBehaviour
|
|
{
|
|
// Token: 0x06012CC8 RID: 77000 RVA: 0x004527D8 File Offset: 0x004509D8
|
|
[Token(Token = "0x6012CC8")]
|
|
[Address(RVA = "0xDDC950", Offset = "0xDDB750", VA = "0x180DDC950")]
|
|
private void Awake()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.BPJDFPACLMK(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x06012CC9 RID: 77001 RVA: 0x00452804 File Offset: 0x00450A04
|
|
[Token(Token = "0x6012CC9")]
|
|
[Address(RVA = "0xDDCB80", Offset = "0xDDB980", VA = "0x180DDCB80")]
|
|
private void OnDestroy()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.GMNMHGMFGOL(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x06012CCA RID: 77002 RVA: 0x00452830 File Offset: 0x00450A30
|
|
[Token(Token = "0x6012CCA")]
|
|
[Address(RVA = "0xDDCA10", Offset = "0xDDB810", VA = "0x180DDCA10")]
|
|
private void EFNPEBAELCE(StuntRunnerManager.FCLFCDICFFI DMKLBMIAAJA)
|
|
{
|
|
if (DMKLBMIAAJA == StuntRunnerManager.FCLFCDICFFI.PLAYER_FINISHED)
|
|
{
|
|
ParticleSystem[] array = this.endRaceVFX;
|
|
if (array == 0)
|
|
{
|
|
return;
|
|
}
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num >= length)
|
|
{
|
|
return;
|
|
}
|
|
ParticleSystem particleSystem = array[num];
|
|
if (particleSystem != 0)
|
|
{
|
|
particleSystem.Play();
|
|
}
|
|
num++;
|
|
}
|
|
if (DMKLBMIAAJA == StuntRunnerManager.FCLFCDICFFI.GAME_START)
|
|
{
|
|
ParticleSystem[] array2 = this.endRaceVFX;
|
|
if (array2 != 0)
|
|
{
|
|
int num2 = 0;
|
|
int length2 = array2.Length;
|
|
if (num2 < length2)
|
|
{
|
|
ParticleSystem particleSystem2 = array2[num2];
|
|
if (particleSystem2 != 0)
|
|
{
|
|
particleSystem2.Stop();
|
|
}
|
|
num2++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012CCB RID: 77003 RVA: 0x004528B8 File Offset: 0x00450AB8
|
|
[Token(Token = "0x6012CCB")]
|
|
[Address(RVA = "0xDDCAC0", Offset = "0xDDB8C0", VA = "0x180DDCAC0")]
|
|
private void LPONEKPMCCI()
|
|
{
|
|
ParticleSystem[] array = this.endRaceVFX;
|
|
if (array != 0)
|
|
{
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
ParticleSystem particleSystem = array[num];
|
|
if (particleSystem != 0)
|
|
{
|
|
particleSystem.Stop();
|
|
}
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012CCC RID: 77004 RVA: 0x004528FC File Offset: 0x00450AFC
|
|
[Token(Token = "0x6012CCC")]
|
|
[Address(RVA = "0xDDCB20", Offset = "0xDDB920", VA = "0x180DDCB20")]
|
|
private void OCKOFCKDCHH()
|
|
{
|
|
ParticleSystem[] array = this.endRaceVFX;
|
|
if (array != 0)
|
|
{
|
|
int num = 0;
|
|
int length = array.Length;
|
|
if (num < length)
|
|
{
|
|
ParticleSystem particleSystem = array[num];
|
|
if (particleSystem != 0)
|
|
{
|
|
particleSystem.Play();
|
|
}
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06012CCD RID: 77005 RVA: 0x00452940 File Offset: 0x00450B40
|
|
[Token(Token = "0x6012CCD")]
|
|
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
|
|
public StuntRunnerEndingGate()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C28F RID: 49807
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C28F")]
|
|
[SerializeField]
|
|
[Header("Visuals")]
|
|
private ParticleSystem[] endRaceVFX;
|
|
}
|
|
}
|