Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/ParticleSystemsPlay.cs
T
2026-04-08 23:40:05 +02:00

55 lines
1.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x02000674 RID: 1652
[Token(Token = "0x2000674")]
[StructLayout(3)]
public class ParticleSystemsPlay : MonoBehaviour
{
// Token: 0x06002FC5 RID: 12229 RVA: 0x000C66DC File Offset: 0x000C48DC
[Token(Token = "0x6002FC5")]
[Address(RVA = "0x1633AD0", Offset = "0x16324D0", VA = "0x181633AD0")]
private void Start()
{
float num = this.destroyLifeTimeOverride;
int num2 = 0;
ParticleSystem[] componentsInChildren = base.GetComponentsInChildren<ParticleSystem>();
int length = componentsInChildren.Length;
if (num2 < length)
{
ParticleSystem particleSystem = componentsInChildren[num2];
ParticleSystem.MainModule main = particleSystem.main;
float num3;
num = num3;
particleSystem.Clear();
particleSystem.Play();
num2++;
}
if (this.destroyOnDone)
{
global::UnityEngine.Object.Destroy(base.gameObject, num);
}
}
// Token: 0x06002FC6 RID: 12230 RVA: 0x000C674C File Offset: 0x000C494C
[Token(Token = "0x6002FC6")]
[Address(RVA = "0x1633C90", Offset = "0x1632690", VA = "0x181633C90")]
public ParticleSystemsPlay()
{
}
// Token: 0x0400291B RID: 10523
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400291B")]
[SerializeField]
private bool destroyOnDone = true;
// Token: 0x0400291C RID: 10524
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
[Token(Token = "0x400291C")]
[SerializeField]
private float destroyLifeTimeOverride = 5f;
}