using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000011 RID: 17
[Token(Token = "0x2000011")]
public class GhostAAttackSplash02 : MonoBehaviour
{
	// Token: 0x06000061 RID: 97 RVA: 0x00003204 File Offset: 0x00001404
	[Token(Token = "0x6000061")]
	[Address(RVA = "0x54FBA0", Offset = "0x54E9A0", VA = "0x18054FBA0")]
	private void Start()
	{
		Material material = this.g_Mat01;
		int num = 0;
		if (material == num)
		{
			Material material2 = this.Render01.GetMaterial();
			this.g_Mat01 = material2;
		}
		Material material3 = this.g_Mat02;
		int num2 = 0;
		if (material3 == num2)
		{
			Material material4 = this.Render02.GetMaterial();
			this.g_Mat02 = material4;
		}
		Material material5 = this.g_Mat03;
		int num3 = 0;
		if (material5 == num3)
		{
			Material material6 = this.Render03.GetMaterial();
			this.g_Mat03 = material6;
		}
		Material material7 = this.g_Mat04;
		int num4 = 0;
		if (material7 == num4)
		{
			Material material8 = this.Render04.GetMaterial();
			this.g_Mat04 = material8;
		}
		this.ResetData();
	}

	// Token: 0x06000062 RID: 98 RVA: 0x000032C8 File Offset: 0x000014C8
	[Token(Token = "0x6000062")]
	[Address(RVA = "0x54F7F0", Offset = "0x54E5F0", VA = "0x18054F7F0")]
	public void InitData()
	{
		Material material = this.g_Mat01;
		int num = 0;
		if (material == num)
		{
			Material material2 = this.Render01.GetMaterial();
			this.g_Mat01 = material2;
		}
		Material material3 = this.g_Mat02;
		int num2 = 0;
		if (material3 == num2)
		{
			Material material4 = this.Render02.GetMaterial();
			this.g_Mat02 = material4;
		}
		Material material5 = this.g_Mat03;
		int num3 = 0;
		if (material5 == num3)
		{
			Material material6 = this.Render03.GetMaterial();
			this.g_Mat03 = material6;
		}
		Material material7 = this.g_Mat04;
		int num4 = 0;
		if (material7 == num4)
		{
			Material material8 = this.Render04.GetMaterial();
			this.g_Mat04 = material8;
		}
	}

	// Token: 0x06000063 RID: 99 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000063")]
	[Address(RVA = "0x54FD50", Offset = "0x54EB50", VA = "0x18054FD50")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000064 RID: 100 RVA: 0x00003384 File Offset: 0x00001584
	[Token(Token = "0x6000064")]
	[Address(RVA = "0x54F9F0", Offset = "0x54E7F0", VA = "0x18054F9F0")]
	private void ResetData()
	{
		Material material = this.g_Mat01;
		float startGradient = this.StartGradient;
		this.g_fGradient = startGradient;
		material.SetFloat("_GradientVOffset", startGradient);
		Material material2 = this.g_Mat02;
		float num = this.g_fGradient;
		material2.SetFloat("_GradientVOffset", num);
		Material material3 = this.g_Mat03;
		float num2 = this.g_fGradient;
		material3.SetFloat("_GradientVOffset", num2);
		Material material4 = this.g_Mat04;
		float num3 = this.g_fGradient;
		material4.SetFloat("_GradientVOffset", num3);
		float startAlpha = this.StartAlpha;
		this.g_Alpha = startAlpha;
		this.g_Alpha2 = startAlpha;
		ulong num4;
		this.g_v3ScaleVal.z = (float)num4;
		this.g_TimeVal = 0f;
	}

	// Token: 0x06000065 RID: 101 RVA: 0x00003440 File Offset: 0x00001640
	[Token(Token = "0x6000065")]
	[Address(RVA = "0x54F990", Offset = "0x54E790", VA = "0x18054F990")]
	public void Play()
	{
		this.ResetData();
		base.GetComponent<ParticleSystem>().Play(true);
	}

	// Token: 0x06000066 RID: 102 RVA: 0x00003468 File Offset: 0x00001668
	[Token(Token = "0x6000066")]
	[Address(RVA = "0x54FAF0", Offset = "0x54E8F0", VA = "0x18054FAF0")]
	public void SetTimeScale(float fTimeScale)
	{
		this.g_Mat01.SetFloat("_TimeScale", fTimeScale);
		this.g_Mat02.SetFloat("_TimeScale", fTimeScale);
		this.g_Mat03.SetFloat("_TimeScale", fTimeScale);
		this.g_Mat04.SetFloat("_TimeScale", fTimeScale);
	}

	// Token: 0x06000067 RID: 103 RVA: 0x000034C0 File Offset: 0x000016C0
	[Token(Token = "0x6000067")]
	[Address(RVA = "0x550190", Offset = "0x54EF90", VA = "0x180550190")]
	public GhostAAttackSplash02()
	{
	}

	// Token: 0x040000B4 RID: 180
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x40000B4")]
	private bool Loop;

	// Token: 0x040000B5 RID: 181
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x40000B5")]
	public MeshRenderer Render01;

	// Token: 0x040000B6 RID: 182
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x40000B6")]
	public MeshRenderer Render02;

	// Token: 0x040000B7 RID: 183
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x40000B7")]
	public MeshRenderer Render03;

	// Token: 0x040000B8 RID: 184
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x40000B8")]
	public MeshRenderer Render04;

	// Token: 0x040000B9 RID: 185
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x40000B9")]
	private Material g_Mat01;

	// Token: 0x040000BA RID: 186
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x40000BA")]
	private Material g_Mat02;

	// Token: 0x040000BB RID: 187
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x40000BB")]
	private Material g_Mat03;

	// Token: 0x040000BC RID: 188
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x40000BC")]
	private Material g_Mat04;

	// Token: 0x040000BD RID: 189
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x40000BD")]
	public float StartGradient = 0.6f;

	// Token: 0x040000BE RID: 190
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x40000BE")]
	public float GradientSpeed = 4f;

	// Token: 0x040000BF RID: 191
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40000BF")]
	private float g_fGradient;

	// Token: 0x040000C0 RID: 192
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40000C0")]
	public Transform ObjectScale;

	// Token: 0x040000C1 RID: 193
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x40000C1")]
	public Vector3 ScaleVal;

	// Token: 0x040000C2 RID: 194
	[FieldOffset(Offset = "0x84")]
	[Token(Token = "0x40000C2")]
	public float ScaleSpeed = 1f;

	// Token: 0x040000C3 RID: 195
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x40000C3")]
	private Vector3 g_v3ScaleVal;

	// Token: 0x040000C4 RID: 196
	[FieldOffset(Offset = "0x94")]
	[Token(Token = "0x40000C4")]
	public float StartAlpha = 0.85f;

	// Token: 0x040000C5 RID: 197
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x40000C5")]
	public float AlphaSpeed = 1f;

	// Token: 0x040000C6 RID: 198
	[FieldOffset(Offset = "0x9C")]
	[Token(Token = "0x40000C6")]
	public float AlphaSpeed2 = 0.5f;

	// Token: 0x040000C7 RID: 199
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x40000C7")]
	private float g_Alpha = 0.9f;

	// Token: 0x040000C8 RID: 200
	[FieldOffset(Offset = "0xA4")]
	[Token(Token = "0x40000C8")]
	private float g_Alpha2 = 0.9f;

	// Token: 0x040000C9 RID: 201
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x40000C9")]
	private float g_Time = 3f;

	// Token: 0x040000CA RID: 202
	[FieldOffset(Offset = "0xAC")]
	[Token(Token = "0x40000CA")]
	private float g_StartEndTime = 0.01f;

	// Token: 0x040000CB RID: 203
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x40000CB")]
	private float g_TimeVal;
}
