117 lines
3.8 KiB
C#
117 lines
3.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x0200009C RID: 156
|
|
[Token(Token = "0x200009C")]
|
|
public class WandProjectileParticles : PooledParticle
|
|
{
|
|
// Token: 0x0600042B RID: 1067 RVA: 0x00016A3C File Offset: 0x00014C3C
|
|
[Token(Token = "0x600042B")]
|
|
[Address(RVA = "0x2030280", Offset = "0x202F280", VA = "0x182030280", Slot = "4")]
|
|
protected override void Awake()
|
|
{
|
|
int num = 0;
|
|
base.Awake();
|
|
WandProjectileParticles.KJBMIGPHPCN[] array = new WandProjectileParticles.KJBMIGPHPCN[this.particleSystemsWithVelocity.Length];
|
|
this.LGBHPCABFIB = array;
|
|
float[] array2 = new float[this.particleSystemsWithVelocity.Length];
|
|
ParticleSystem[] array3 = this.particleSystemsWithVelocity;
|
|
this.ILMJPENEFMP = array2;
|
|
if (num < array3.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array3[num].main;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib = this.LGBHPCABFIB;
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
float[] ilmjpenefmp = this.ILMJPENEFMP;
|
|
float num2 = ParticleSystem.MainModule.get_gravityModifierMultiplier_Injected(main2);
|
|
num++;
|
|
ilmjpenefmp[0] = num2;
|
|
ParticleSystem[] array4 = this.particleSystemsWithVelocity;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600042C RID: 1068 RVA: 0x00016AEC File Offset: 0x00014CEC
|
|
[Token(Token = "0x600042C")]
|
|
[Address(RVA = "0x2030490", Offset = "0x202F490", VA = "0x182030490")]
|
|
public void ResetVelocity()
|
|
{
|
|
int num = 0;
|
|
ParticleSystem[] array = this.particleSystemsWithVelocity;
|
|
if (num < array.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array[num].main;
|
|
float num2 = this.ILMJPENEFMP[num];
|
|
ParticleSystem.MainModule.set_gravityModifierMultiplier_Injected(main, num2);
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib = this.LGBHPCABFIB;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib2 = this.LGBHPCABFIB;
|
|
WandProjectileParticles.KJBMIGPHPCN[] lgbhpcabfib3 = this.LGBHPCABFIB;
|
|
ParticleSystem[] array2 = this.particleSystemsWithVelocity;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600042D RID: 1069 RVA: 0x00016B6C File Offset: 0x00014D6C
|
|
[Token(Token = "0x600042D")]
|
|
[Address(RVA = "0x2030660", Offset = "0x202F660", VA = "0x182030660")]
|
|
public void StopVelocity()
|
|
{
|
|
ParticleSystem[] array = this.particleSystemsWithVelocity;
|
|
int num = 0;
|
|
if (num < array.Length)
|
|
{
|
|
ParticleSystem.MainModule main = array[num].main;
|
|
int num2 = 0;
|
|
ParticleSystem.MainModule.set_gravityModifierMultiplier_Injected(main, (float)num2);
|
|
ParticleSystem.MainModule main2 = this.particleSystemsWithVelocity[num].main;
|
|
ParticleSystem[] array2 = this.particleSystemsWithVelocity;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600042E RID: 1070 RVA: 0x00016BC8 File Offset: 0x00014DC8
|
|
[Token(Token = "0x600042E")]
|
|
[Address(RVA = "0x12C5610", Offset = "0x12C4610", VA = "0x1812C5610")]
|
|
public WandProjectileParticles()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000386 RID: 902
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4000386")]
|
|
[SerializeField]
|
|
private ParticleSystem[] particleSystemsWithVelocity;
|
|
|
|
// Token: 0x04000387 RID: 903
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4000387")]
|
|
private WandProjectileParticles.KJBMIGPHPCN[] LGBHPCABFIB;
|
|
|
|
// Token: 0x04000388 RID: 904
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4000388")]
|
|
private float[] ILMJPENEFMP;
|
|
|
|
// Token: 0x0200009D RID: 157
|
|
[Token(Token = "0x200009D")]
|
|
private struct KJBMIGPHPCN
|
|
{
|
|
// Token: 0x04000389 RID: 905
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000389")]
|
|
public bool IKAGKELDMJH;
|
|
|
|
// Token: 0x0400038A RID: 906
|
|
[FieldOffset(Offset = "0x4")]
|
|
[Token(Token = "0x400038A")]
|
|
public float IONKGEEGAEE;
|
|
|
|
// Token: 0x0400038B RID: 907
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x400038B")]
|
|
public float PFNGBCPCHGC;
|
|
}
|
|
}
|