using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200000F RID: 15
[Token(Token = "0x200000F")]
public class EvaporatingLoop : MonoBehaviour
{
	// Token: 0x06000055 RID: 85 RVA: 0x00002F44 File Offset: 0x00001144
	[Token(Token = "0x6000055")]
	[Address(RVA = "0xA67DD0", Offset = "0xA66BD0", VA = "0x180A67DD0")]
	private void Start()
	{
		Material material = this.MR.GetMaterial();
		this.g_Mat = material;
		throw new NullReferenceException();
	}

	// Token: 0x06000056 RID: 86 RVA: 0x00002F6C File Offset: 0x0000116C
	[Token(Token = "0x6000056")]
	[Address(RVA = "0xA67AF0", Offset = "0xA668F0", VA = "0x180A67AF0")]
	public void InitData()
	{
		Material material = this.g_Mat;
		int num = 0;
		if (material == num)
		{
			Material material2 = this.MR.GetMaterial();
			this.g_Mat = material2;
		}
	}

	// Token: 0x06000057 RID: 87 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6000057")]
	[Address(RVA = "0xA67E20", Offset = "0xA66C20", VA = "0x180A67E20")]
	private void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06000058 RID: 88 RVA: 0x00002FA8 File Offset: 0x000011A8
	[Token(Token = "0x6000058")]
	[Address(RVA = "0xA67B90", Offset = "0xA66990", VA = "0x180A67B90")]
	public void PlayEffect()
	{
		Material material = this.g_Mat;
		float gradientUStart = this.GradientUStart;
		this.g_GradientU = gradientUStart;
		this.g_bPlay = true;
		material.SetFloat("_GradientUOffset", gradientUStart);
		Material material2 = this.g_Mat;
		float gradientVStart = this.GradientVStart;
		this.g_GradientV = gradientVStart;
		material2.SetFloat("_GradientVOffset", gradientVStart);
		Material material3 = this.g_Mat;
		this.g_Alpha = 0f;
		int num = 0;
		material3.SetFloat("_Alpha", (float)num);
		SceneManager sceneManager = Game.sceneManager;
		int num2 = 0;
		if (sceneManager != num2)
		{
			Material material4 = this.g_Mat;
			float stageTimeScale = Game.GetStageTimeScale();
			material4.SetFloat("_TimeScale", stageTimeScale);
			return;
		}
	}

	// Token: 0x06000059 RID: 89 RVA: 0x00003060 File Offset: 0x00001260
	[Token(Token = "0x6000059")]
	[Address(RVA = "0xA67E10", Offset = "0xA66C10", VA = "0x180A67E10")]
	public void StopEffect()
	{
		this.g_bPlay = false;
	}

	// Token: 0x0600005A RID: 90 RVA: 0x00003074 File Offset: 0x00001274
	[Token(Token = "0x600005A")]
	[Address(RVA = "0xA67D70", Offset = "0xA66B70", VA = "0x180A67D70")]
	public void SetTimeScale(float fTimeScale)
	{
		this.g_Mat.SetFloat("_TimeScale", fTimeScale);
	}

	// Token: 0x0600005B RID: 91 RVA: 0x00003098 File Offset: 0x00001298
	[Token(Token = "0x600005B")]
	[Address(RVA = "0xA68020", Offset = "0xA66E20", VA = "0x180A68020")]
	public EvaporatingLoop()
	{
	}

	// Token: 0x04000088 RID: 136
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4000088")]
	private Material g_Mat;

	// Token: 0x04000089 RID: 137
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4000089")]
	public MeshRenderer MR;

	// Token: 0x0400008A RID: 138
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x400008A")]
	public float AlphaFadeInSpeed = 1f;

	// Token: 0x0400008B RID: 139
	[FieldOffset(Offset = "0x2C")]
	[Token(Token = "0x400008B")]
	public float AlphaFadeOutSpeed = 1f;

	// Token: 0x0400008C RID: 140
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x400008C")]
	private float g_Alpha;

	// Token: 0x0400008D RID: 141
	[FieldOffset(Offset = "0x34")]
	[Token(Token = "0x400008D")]
	public float GradientUStart;

	// Token: 0x0400008E RID: 142
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x400008E")]
	public float GradientVStart;

	// Token: 0x0400008F RID: 143
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x400008F")]
	public float GradientUSpeed;

	// Token: 0x04000090 RID: 144
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4000090")]
	public float GradientVSpeed;

	// Token: 0x04000091 RID: 145
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x4000091")]
	private float g_GradientU;

	// Token: 0x04000092 RID: 146
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4000092")]
	private float g_GradientV;

	// Token: 0x04000093 RID: 147
	[FieldOffset(Offset = "0x4C")]
	[Token(Token = "0x4000093")]
	private bool g_bPlay;
}
