using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200000E RID: 14
[Token(Token = "0x200000E")]
public class Evaporating01 : MonoBehaviour
{
	// Token: 0x0600004D RID: 77 RVA: 0x00002D40 File Offset: 0x00000F40
	[Token(Token = "0x600004D")]
	[Address(RVA = "0xA677C0", Offset = "0xA665C0", VA = "0x180A677C0")]
	private void Start()
	{
		Material material = this.MR.GetMaterial();
		this.g_Mat = material;
		Material material2 = this.g_Mat;
		int num = 0;
		material2.SetFloat("_Alpha", (float)num);
	}

	// Token: 0x0600004E RID: 78 RVA: 0x00002D7C File Offset: 0x00000F7C
	[Token(Token = "0x600004E")]
	[Address(RVA = "0xA67520", Offset = "0xA66320", VA = "0x180A67520")]
	public void InitData(float fUserTimeScale = 1f)
	{
		/*
An exception occurred when decompiling this method (0600004E)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Evaporating01::InitData(System.Single)

 ---> System.ArgumentOutOfRangeException: Non-negative number required. (Parameter 'length')
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackSlot.ModifyStack(StackSlot[] stack, Int32 popCount, Int32 pushCount, ByteCode pushDefinition) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 51
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 401
   at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 276
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 112
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
	}

	// Token: 0x0600004F RID: 79 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600004F")]
	[Address(RVA = "0xA67840", Offset = "0xA66640", VA = "0x180A67840")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000050 RID: 80 RVA: 0x00002E10 File Offset: 0x00001010
	[Token(Token = "0x6000050")]
	[Address(RVA = "0xA67730", Offset = "0xA66530", VA = "0x180A67730")]
	public void ResetData()
	{
		float lifeTime = this.LifeTime;
		this.g_Time = lifeTime;
		float startAlpha = this.StartAlpha;
		this.g_Alpha = startAlpha;
		float continueAlpha = this.ContinueAlpha;
		this.g_ContinueAlpha = continueAlpha;
		float gradientXStart = this.GradientXStart;
		this.g_GradientX = gradientXStart;
		float gradientYStart = this.GradientYStart;
		this.g_GradientY = gradientYStart;
	}

	// Token: 0x06000051 RID: 81 RVA: 0x00002E68 File Offset: 0x00001068
	[Token(Token = "0x6000051")]
	[Address(RVA = "0xA67700", Offset = "0xA66500", VA = "0x180A67700")]
	public void PlayEffect(bool bLoop = false)
	{
		float lifeTime = this.LifeTime;
		this.g_Time = lifeTime;
		float startAlpha = this.StartAlpha;
		this.g_Alpha = startAlpha;
		float continueAlpha = this.ContinueAlpha;
		this.g_ContinueAlpha = continueAlpha;
		float gradientXStart = this.GradientXStart;
		this.g_GradientX = gradientXStart;
		float gradientYStart = this.GradientYStart;
		this.g_GradientY = gradientYStart;
		this.Loop = bLoop;
		this.g_bPlay = true;
	}

	// Token: 0x06000052 RID: 82 RVA: 0x00002ECC File Offset: 0x000010CC
	[Token(Token = "0x6000052")]
	[Address(RVA = "0xA67830", Offset = "0xA66630", VA = "0x180A67830")]
	public void StopEffect()
	{
		this.Loop = false;
		this.g_ContinueAlpha = 0f;
	}

	// Token: 0x06000053 RID: 83 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000053")]
	[Address(RVA = "0xA67750", Offset = "0xA66550", VA = "0x180A67750")]
	public void SetTimeScale(float fTimeScale, float fUserTimeScale = 1f)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000054 RID: 84 RVA: 0x00002EEC File Offset: 0x000010EC
	[Token(Token = "0x6000054")]
	[Address(RVA = "0xA67AB0", Offset = "0xA668B0", VA = "0x180A67AB0")]
	public Evaporating01()
	{
	}

	// Token: 0x04000075 RID: 117
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4000075")]
	private Material g_Mat;

	// Token: 0x04000076 RID: 118
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4000076")]
	public bool Loop = true;

	// Token: 0x04000077 RID: 119
	[FieldOffset(Offset = "0x24")]
	[Token(Token = "0x4000077")]
	public float LifeTime = 2f;

	// Token: 0x04000078 RID: 120
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4000078")]
	private float g_Time;

	// Token: 0x04000079 RID: 121
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x4000079")]
	public float StartAlpha = 0.95f;

	// Token: 0x0400007A RID: 122
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400007A")]
	public float ContinueAlpha = 0.5f;

	// Token: 0x0400007B RID: 123
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x400007B")]
	public float FadeOutAlpha = 1f;

	// Token: 0x0400007C RID: 124
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400007C")]
	private float g_Alpha;

	// Token: 0x0400007D RID: 125
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x400007D")]
	private float g_ContinueAlpha;

	// Token: 0x0400007E RID: 126
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x400007E")]
	public float GradientXStart;

	// Token: 0x0400007F RID: 127
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x400007F")]
	public float GradientYStart;

	// Token: 0x04000080 RID: 128
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4000080")]
	public float GradientXSpeed;

	// Token: 0x04000081 RID: 129
	[FieldOffset(Offset = "0x4C")]
	[Token(Token = "0x4000081")]
	public float GradientYSpeed;

	// Token: 0x04000082 RID: 130
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4000082")]
	private float g_GradientX;

	// Token: 0x04000083 RID: 131
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4000083")]
	private float g_GradientY;

	// Token: 0x04000084 RID: 132
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4000084")]
	public MeshRenderer MR;

	// Token: 0x04000085 RID: 133
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4000085")]
	private bool g_bPlay;

	// Token: 0x04000086 RID: 134
	[FieldOffset(Offset = "0x61")]
	[Token(Token = "0x4000086")]
	public bool AutoClose = true;

	// Token: 0x04000087 RID: 135
	[FieldOffset(Offset = "0x64")]
	[Token(Token = "0x4000087")]
	private float g_fUserTimeScale = 1f;
}
