Files
NobetaSource/Cpp2IL/Assembly-CSharp/CFX_AutoStopLoopedEffect.cs
2023-09-06 22:19:13 +02:00

58 lines
1.5 KiB
C#

using System;
using Cpp2IlInjected;
using UnityEngine;
// Token: 0x02000387 RID: 903
[Token(Token = "0x2000387")]
[RequireComponent(typeof(ParticleSystem))]
public class CFX_AutoStopLoopedEffect : MonoBehaviour
{
// Token: 0x0600232F RID: 9007 RVA: 0x00054890 File Offset: 0x00052A90
[Token(Token = "0x600232F")]
[Address(RVA = "0xB897E0", Offset = "0xB887E0", VA = "0x180B897E0")]
private void OnEnable()
{
float num = this.effectDuration;
this.d = num;
}
// Token: 0x06002330 RID: 9008 RVA: 0x000548AC File Offset: 0x00052AAC
[Token(Token = "0x6002330")]
[Address(RVA = "0xB897F0", Offset = "0xB887F0", VA = "0x180B897F0")]
private void Update()
{
float num = this.d;
int num2 = 0;
if (num > (float)num2)
{
float deltaTime = Time.deltaTime;
this.d = num;
base.GetComponent<ParticleSystem>().Stop(true);
CFX_Demo_Translate component = base.gameObject.GetComponent<CFX_Demo_Translate>();
int num3 = 0;
if (component != num3)
{
int num4 = 0;
component.enabled = num4 != 0;
}
}
}
// Token: 0x06002331 RID: 9009 RVA: 0x00054910 File Offset: 0x00052B10
[Token(Token = "0x6002331")]
[Address(RVA = "0xB89900", Offset = "0xB88900", VA = "0x180B89900")]
public CFX_AutoStopLoopedEffect()
{
}
// Token: 0x04002C9F RID: 11423
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4002C9F")]
public float effectDuration = 2.5f;
// Token: 0x04002CA0 RID: 11424
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4002CA0")]
private float d;
}