251 lines
6.1 KiB
C#
251 lines
6.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Activities.StuntRunner
|
|
{
|
|
// Token: 0x020026C7 RID: 9927
|
|
[Token(Token = "0x20026C7")]
|
|
[StructLayout(3)]
|
|
public class StuntRunnerStartingGate : MonoBehaviour
|
|
{
|
|
// Token: 0x060113B4 RID: 70580 RVA: 0x00413390 File Offset: 0x00411590
|
|
[Token(Token = "0x60113B4")]
|
|
[Address(RVA = "0x15D40C0", Offset = "0x15D2AC0", VA = "0x1815D40C0")]
|
|
private void Awake()
|
|
{
|
|
ActionEvent<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = feedbackEvent + action;
|
|
}
|
|
|
|
// Token: 0x060113B5 RID: 70581 RVA: 0x004133BC File Offset: 0x004115BC
|
|
[Token(Token = "0x60113B5")]
|
|
[Address(RVA = "0x15D45A0", Offset = "0x15D2FA0", VA = "0x1815D45A0")]
|
|
private void OnDestroy()
|
|
{
|
|
ActionEvent<StuntRunnerManager.FCLFCDICFFI> feedbackEvent = StuntRunnerManager.FeedbackEvent;
|
|
Action<StuntRunnerManager.FCLFCDICFFI> action = new Action(this.EFNPEBAELCE);
|
|
StuntRunnerManager.FeedbackEvent = feedbackEvent - action;
|
|
}
|
|
|
|
// Token: 0x060113B6 RID: 70582 RVA: 0x004133E8 File Offset: 0x004115E8
|
|
[Token(Token = "0x60113B6")]
|
|
[Address(RVA = "0x15D41E0", Offset = "0x15D2BE0", VA = "0x1815D41E0")]
|
|
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: 0x060113B7 RID: 70583 RVA: 0x00413544 File Offset: 0x00411744
|
|
[Token(Token = "0x60113B7")]
|
|
[Address(RVA = "0x15D44C0", Offset = "0x15D2EC0", VA = "0x1815D44C0")]
|
|
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: 0x060113B8 RID: 70584 RVA: 0x004135C4 File Offset: 0x004117C4
|
|
[Token(Token = "0x60113B8")]
|
|
[Address(RVA = "0x15D4180", Offset = "0x15D2B80", VA = "0x1815D4180")]
|
|
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: 0x060113B9 RID: 70585 RVA: 0x00413608 File Offset: 0x00411808
|
|
[Token(Token = "0x60113B9")]
|
|
[Address(RVA = "0x15D43E0", Offset = "0x15D2DE0", VA = "0x1815D43E0")]
|
|
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: 0x060113BA RID: 70586 RVA: 0x00413684 File Offset: 0x00411884
|
|
[Token(Token = "0x60113BA")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public StuntRunnerStartingGate()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400B7D2 RID: 47058
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B7D2")]
|
|
[SerializeField]
|
|
[Header("Visuals")]
|
|
private ParticleSystem[] startRaceVFX;
|
|
|
|
// Token: 0x0400B7D3 RID: 47059
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400B7D3")]
|
|
[SerializeField]
|
|
private Animator[] startGateAnimators;
|
|
|
|
// Token: 0x0400B7D4 RID: 47060
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400B7D4")]
|
|
[SerializeField]
|
|
private RaceStartLight[] startingLights;
|
|
}
|
|
}
|