249 lines
6.0 KiB
C#
249 lines
6.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.StuntRunner
|
|
{
|
|
// Token: 0x02002CA5 RID: 11429
|
|
[Token(Token = "0x2002CA5")]
|
|
public class StuntRunnerStartingGate : MonoBehaviour
|
|
{
|
|
// Token: 0x060131BB RID: 78267 RVA: 0x0045FB84 File Offset: 0x0045DD84
|
|
[Token(Token = "0x60131BB")]
|
|
[Address(RVA = "0x14FDCF0", Offset = "0x14FCCF0", VA = "0x1814FDCF0")]
|
|
private void Awake()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.BPJDFPACLMK(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x060131BC RID: 78268 RVA: 0x0045FBB0 File Offset: 0x0045DDB0
|
|
[Token(Token = "0x60131BC")]
|
|
[Address(RVA = "0x14FE1D0", Offset = "0x14FD1D0", VA = "0x1814FE1D0")]
|
|
private void OnDestroy()
|
|
{
|
|
MFBGLIHGCGO<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = MFBGLIHGCGO.GMNMHGMFGOL(feedbackEvent, action);
|
|
}
|
|
|
|
// Token: 0x060131BD RID: 78269 RVA: 0x0045FBDC File Offset: 0x0045DDDC
|
|
[Token(Token = "0x60131BD")]
|
|
[Address(RVA = "0x14FDE10", Offset = "0x14FCE10", VA = "0x1814FDE10")]
|
|
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: 0x060131BE RID: 78270 RVA: 0x0045FD38 File Offset: 0x0045DF38
|
|
[Token(Token = "0x60131BE")]
|
|
[Address(RVA = "0x14FE0F0", Offset = "0x14FD0F0", VA = "0x1814FE0F0")]
|
|
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: 0x060131BF RID: 78271 RVA: 0x0045FDB8 File Offset: 0x0045DFB8
|
|
[Token(Token = "0x60131BF")]
|
|
[Address(RVA = "0x14FDDB0", Offset = "0x14FCDB0", VA = "0x1814FDDB0")]
|
|
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: 0x060131C0 RID: 78272 RVA: 0x0045FDFC File Offset: 0x0045DFFC
|
|
[Token(Token = "0x60131C0")]
|
|
[Address(RVA = "0x14FE010", Offset = "0x14FD010", VA = "0x1814FE010")]
|
|
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: 0x060131C1 RID: 78273 RVA: 0x0045FE78 File Offset: 0x0045E078
|
|
[Token(Token = "0x60131C1")]
|
|
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
|
public StuntRunnerStartingGate()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400C55C RID: 50524
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400C55C")]
|
|
[SerializeField]
|
|
[Header("Visuals")]
|
|
private ParticleSystem[] startRaceVFX;
|
|
|
|
// Token: 0x0400C55D RID: 50525
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400C55D")]
|
|
[SerializeField]
|
|
private Animator[] startGateAnimators;
|
|
|
|
// Token: 0x0400C55E RID: 50526
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400C55E")]
|
|
[SerializeField]
|
|
private RaceStartLight[] startingLights;
|
|
}
|
|
}
|