Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/RecRoom/Activities/StuntRunner/StuntRunnerStartingGate.cs
T
2026-04-10 22:50:51 +02:00

249 lines
6.0 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Activities.StuntRunner
{
// Token: 0x02002BBC RID: 11196
[Token(Token = "0x2002BBC")]
public class StuntRunnerStartingGate : MonoBehaviour
{
// Token: 0x06012D7A RID: 77178 RVA: 0x00455DD0 File Offset: 0x00453FD0
[Token(Token = "0x6012D7A")]
[Address(RVA = "0x9E6040", Offset = "0x9E4E40", VA = "0x1809E6040")]
private void Awake()
{
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.BPJDFPACLMK(feedbackEvent, action);
}
// Token: 0x06012D7B RID: 77179 RVA: 0x00455DFC File Offset: 0x00453FFC
[Token(Token = "0x6012D7B")]
[Address(RVA = "0x9E6520", Offset = "0x9E5320", VA = "0x1809E6520")]
private void OnDestroy()
{
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.GMNMHGMFGOL(feedbackEvent, action);
}
// Token: 0x06012D7C RID: 77180 RVA: 0x00455E28 File Offset: 0x00454028
[Token(Token = "0x6012D7C")]
[Address(RVA = "0x9E6160", Offset = "0x9E4F60", VA = "0x1809E6160")]
private void EFNPEBAELCE(StuntRunnerManager.FCLFCDICFFI DMKLBMIAAJA)
{
if (DMKLBMIAAJA != StuntRunnerManager.FCLFCDICFFI.COUNTDOWN)
{
if (DMKLBMIAAJA != StuntRunnerManager.FCLFCDICFFI.COUNTDOWN)
{
if (DMKLBMIAAJA == StuntRunnerManager.FCLFCDICFFI.COUNTDOWN || DMKLBMIAAJA != StuntRunnerManager.FCLFCDICFFI.RACE_START)
{
return;
}
Animator[] array = this.startGateAnimators;
int num = 0;
if (array != 0)
{
int length = array.Length;
if (num < length)
{
Animator animator = array[num];
if (animator != 0)
{
int num2 = 0;
animator.SetBool("Open", num2 != 0);
}
num++;
}
}
ParticleSystem[] array2 = this.startRaceVFX;
if (array2 == 0)
{
return;
}
int length2 = array2.Length;
if (num >= length2)
{
return;
}
ParticleSystem particleSystem = array2[num];
if (particleSystem != 0)
{
particleSystem.Stop();
}
num++;
}
Animator[] array3 = this.startGateAnimators;
int num3 = 0;
if (array3 != 0)
{
int length3 = array3.Length;
if (num3 < length3)
{
Animator animator2 = array3[num3];
if (animator2 != 0)
{
ulong num4;
animator2.SetBool("Open", num4 != 0UL);
}
num3++;
}
}
ParticleSystem[] array4 = this.startRaceVFX;
if (array4 == 0)
{
return;
}
int length4 = array4.Length;
if (num3 >= length4)
{
return;
}
ParticleSystem particleSystem2 = array4[num3];
if (particleSystem2 != 0)
{
particleSystem2.Play();
}
num3++;
}
RaceStartLight[] array5 = this.startingLights;
if (array5 != 0)
{
int num5 = 0;
int length5 = array5.Length;
if (num5 < length5)
{
RaceStartLight raceStartLight = array5[num5];
if (raceStartLight != 0)
{
raceStartLight.Play();
}
num5++;
}
}
}
// Token: 0x06012D7D RID: 77181 RVA: 0x00455F84 File Offset: 0x00454184
[Token(Token = "0x6012D7D")]
[Address(RVA = "0x9E6440", Offset = "0x9E5240", VA = "0x1809E6440")]
private void LPONEKPMCCI()
{
Animator[] array = this.startGateAnimators;
int num = 0;
if (array != 0)
{
int length = array.Length;
if (num < length)
{
Animator animator = array[num];
if (animator != 0)
{
int num2 = 0;
animator.SetBool("Open", num2 != 0);
}
num++;
}
}
ParticleSystem[] array2 = this.startRaceVFX;
if (array2 != 0)
{
int length2 = array2.Length;
if (num < length2)
{
ParticleSystem particleSystem = array2[num];
if (particleSystem != 0)
{
particleSystem.Stop();
}
num++;
}
}
}
// Token: 0x06012D7E RID: 77182 RVA: 0x00456004 File Offset: 0x00454204
[Token(Token = "0x6012D7E")]
[Address(RVA = "0x9E6100", Offset = "0x9E4F00", VA = "0x1809E6100")]
private void BBOPLJIDPFD()
{
RaceStartLight[] array = this.startingLights;
if (array != 0)
{
int num = 0;
int length = array.Length;
if (num < length)
{
RaceStartLight raceStartLight = array[num];
if (raceStartLight != 0)
{
raceStartLight.Play();
}
num++;
}
}
}
// Token: 0x06012D7F RID: 77183 RVA: 0x00456048 File Offset: 0x00454248
[Token(Token = "0x6012D7F")]
[Address(RVA = "0x9E6360", Offset = "0x9E5160", VA = "0x1809E6360")]
private void GDBNFJKIMJA()
{
Animator[] array = this.startGateAnimators;
int num = 0;
if (array != 0)
{
int length = array.Length;
if (num < length)
{
Animator animator = array[num];
if (animator != 0)
{
animator.SetBool("Open", true);
}
num++;
}
}
ParticleSystem[] array2 = this.startRaceVFX;
if (array2 != 0)
{
int length2 = array2.Length;
if (num < length2)
{
ParticleSystem particleSystem = array2[num];
if (particleSystem != 0)
{
particleSystem.Play();
}
num++;
}
}
}
// Token: 0x06012D80 RID: 77184 RVA: 0x004560C4 File Offset: 0x004542C4
[Token(Token = "0x6012D80")]
[Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")]
public StuntRunnerStartingGate()
{
}
// Token: 0x0400C348 RID: 49992
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400C348")]
[SerializeField]
[Header("Visuals")]
private ParticleSystem[] startRaceVFX;
// Token: 0x0400C349 RID: 49993
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400C349")]
[SerializeField]
private Animator[] startGateAnimators;
// Token: 0x0400C34A RID: 49994
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400C34A")]
[SerializeField]
private RaceStartLight[] startingLights;
}
}