using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200032F RID: 815
[Token(Token = "0x200032F")]
[RequireComponent(typeof(ParticleSystem))]
public class CFX_AutoStopLoopedEffect : MonoBehaviour
{
	// Token: 0x06002066 RID: 8294 RVA: 0x0004D5F0 File Offset: 0x0004B7F0
	[Token(Token = "0x6002066")]
	[Address(RVA = "0x1348F00", Offset = "0x1347D00", VA = "0x181348F00")]
	private void OnEnable()
	{
		float num = this.effectDuration;
		this.d = num;
	}

	// Token: 0x06002067 RID: 8295 RVA: 0x0004D60C File Offset: 0x0004B80C
	[Token(Token = "0x6002067")]
	[Address(RVA = "0x1348F10", Offset = "0x1347D10", VA = "0x181348F10")]
	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: 0x06002068 RID: 8296 RVA: 0x0004D670 File Offset: 0x0004B870
	[Token(Token = "0x6002068")]
	[Address(RVA = "0x1349020", Offset = "0x1347E20", VA = "0x181349020")]
	public CFX_AutoStopLoopedEffect()
	{
	}

	// Token: 0x040029B5 RID: 10677
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40029B5")]
	public float effectDuration = 2.5f;

	// Token: 0x040029B6 RID: 10678
	[FieldOffset(Offset = "0x1C")]
	[Token(Token = "0x40029B6")]
	private float d;
}
