a
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x0200066E RID: 1646
|
||||
[Token(Token = "0x200066E")]
|
||||
public class ParticleSystemsPlay : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06002FBC RID: 12220 RVA: 0x000C3914 File Offset: 0x000C1B14
|
||||
[Token(Token = "0x6002FBC")]
|
||||
[Address(RVA = "0xA83DB0", Offset = "0xA82BB0", VA = "0x180A83DB0")]
|
||||
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;
|
||||
ParticleSystem.MinMaxCurve minMaxCurve;
|
||||
AnimationCurve curveMax = minMaxCurve.m_CurveMax;
|
||||
float num3;
|
||||
num = num3;
|
||||
particleSystem.Clear();
|
||||
particleSystem.Play();
|
||||
num2++;
|
||||
}
|
||||
if (this.destroyOnDone)
|
||||
{
|
||||
global::UnityEngine.Object.Destroy(base.gameObject, num);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06002FBD RID: 12221 RVA: 0x000C398C File Offset: 0x000C1B8C
|
||||
[Token(Token = "0x6002FBD")]
|
||||
[Address(RVA = "0xA83F70", Offset = "0xA82D70", VA = "0x180A83F70")]
|
||||
public ParticleSystemsPlay()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04002796 RID: 10134
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4002796")]
|
||||
[SerializeField]
|
||||
private bool destroyOnDone = true;
|
||||
|
||||
// Token: 0x04002797 RID: 10135
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4002797")]
|
||||
[SerializeField]
|
||||
private float destroyLifeTimeOverride = 5f;
|
||||
}
|
||||
Reference in New Issue
Block a user