135 lines
3.5 KiB
C#
135 lines
3.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.StuntRunner
|
|
{
|
|
// Token: 0x02002C87 RID: 11399
|
|
[Token(Token = "0x2002C87")]
|
|
public class StuntRunnerEndingGate : MonoBehaviour
|
|
{
|
|
// Token: 0x06013109 RID: 78089 RVA: 0x0045C58C File Offset: 0x0045A78C
|
|
[Token(Token = "0x6013109")]
|
|
[Address(RVA = "0x18EAEA0", Offset = "0x18E9EA0", VA = "0x1818EAEA0")]
|
|
private void Awake()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.BPJDFPACLMK(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x0601310A RID: 78090 RVA: 0x0045C5B8 File Offset: 0x0045A7B8
|
|
[Token(Token = "0x601310A")]
|
|
[Address(RVA = "0x18EB0D0", Offset = "0x18EA0D0", VA = "0x1818EB0D0")]
|
|
private void OnDestroy()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.GMNMHGMFGOL(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x0601310B RID: 78091 RVA: 0x0045C5E4 File Offset: 0x0045A7E4
|
|
[Token(Token = "0x601310B")]
|
|
[Address(RVA = "0x18EAF60", Offset = "0x18E9F60", VA = "0x1818EAF60")]
|
|
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: 0x0601310C RID: 78092 RVA: 0x0045C66C File Offset: 0x0045A86C
|
|
[Token(Token = "0x601310C")]
|
|
[Address(RVA = "0x18EB010", Offset = "0x18EA010", VA = "0x1818EB010")]
|
|
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: 0x0601310D RID: 78093 RVA: 0x0045C6B0 File Offset: 0x0045A8B0
|
|
[Token(Token = "0x601310D")]
|
|
[Address(RVA = "0x18EB070", Offset = "0x18EA070", VA = "0x1818EB070")]
|
|
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: 0x0601310E RID: 78094 RVA: 0x0045C6F4 File Offset: 0x0045A8F4
|
|
[Token(Token = "0x601310E")]
|
|
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
|
public StuntRunnerEndingGate()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C4A3 RID: 50339
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C4A3")]
|
|
[SerializeField]
|
|
[Header("Visuals")]
|
|
private ParticleSystem[] endRaceVFX;
|
|
}
|
|
}
|