using System;
using System.Collections;
using Cpp2IlInjected;
using UnityEngine;

namespace commanastationwww.eternaltemple
{
	// Token: 0x02000587 RID: 1415
	[Token(Token = "0x2000587")]
	public class HideSelf : MonoBehaviour
	{
		// Token: 0x06002E6D RID: 11885 RVA: 0x000630F0 File Offset: 0x000612F0
		[Token(Token = "0x6002E6D")]
		[Address(RVA = "0x117CE10", Offset = "0x117BC10", VA = "0x18117CE10")]
		private void Start()
		{
			Material material = base.GetComponent<Renderer>().GetMaterial();
			this.mat = material;
			float @float = this.mat.GetFloat("_Cutoff");
			this.currentAlpha = @float;
		}

		// Token: 0x06002E6E RID: 11886 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E6E")]
		[Address(RVA = "0x117CF40", Offset = "0x117BD40", VA = "0x18117CF40")]
		private IEnumerator unideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E6F RID: 11887 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E6F")]
		[Address(RVA = "0x117CED0", Offset = "0x117BCD0", VA = "0x18117CED0")]
		private IEnumerator hideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E70 RID: 11888 RVA: 0x00063130 File Offset: 0x00061330
		[Token(Token = "0x6002E70")]
		[Address(RVA = "0x117CC20", Offset = "0x117BA20", VA = "0x18117CC20")]
		private void OnTriggerEnter(Collider other)
		{
			if (this.hidable)
			{
				if (string.Equals(other.gameObject.tag, "MainCamera"))
				{
				}
				base.StopAllCoroutines();
				int num;
				HideSelf.<hideInterpolation>d__9 <hideInterpolation>d__ = new HideSelf.<hideInterpolation>d__9(num);
				num = 0;
				<hideInterpolation>d__.<>4__this = this;
				Coroutine coroutine = base.StartCoroutine(<hideInterpolation>d__);
			}
		}

		// Token: 0x06002E71 RID: 11889 RVA: 0x00063184 File Offset: 0x00061384
		[Token(Token = "0x6002E71")]
		[Address(RVA = "0x117CD10", Offset = "0x117BB10", VA = "0x18117CD10")]
		private void OnTriggerExit(Collider other)
		{
			if (this.hidable)
			{
				if (string.Equals(other.gameObject.tag, "MainCamera"))
				{
				}
				int num = this.collisionEntriesCounter;
				base.StopAllCoroutines();
				int num2;
				HideSelf.<unideInterpolation>d__8 <unideInterpolation>d__ = new HideSelf.<unideInterpolation>d__8(num2);
				num2 = 0;
				<unideInterpolation>d__.<>4__this = this;
				Coroutine coroutine = base.StartCoroutine(<unideInterpolation>d__);
				this.collisionEntriesCounter = (int)((ulong)0L);
			}
		}

		// Token: 0x06002E72 RID: 11890 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E72")]
		[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E73 RID: 11891 RVA: 0x000631E8 File Offset: 0x000613E8
		[Token(Token = "0x6002E73")]
		[Address(RVA = "0x117CEB0", Offset = "0x117BCB0", VA = "0x18117CEB0")]
		public HideSelf()
		{
		}

		// Token: 0x04003747 RID: 14151
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003747")]
		private int collisionEntriesCounter;

		// Token: 0x04003748 RID: 14152
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003748")]
		private Material mat;

		// Token: 0x04003749 RID: 14153
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003749")]
		private float currentAlpha;

		// Token: 0x0400374A RID: 14154
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x400374A")]
		public bool hidable = true;

		// Token: 0x0400374B RID: 14155
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x400374B")]
		public float hidingSpeed = 3f;

		// Token: 0x0400374C RID: 14156
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x400374C")]
		public float minAlpha;

		// Token: 0x0400374D RID: 14157
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x400374D")]
		public float maxAlpha = 1f;
	}
}
