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

namespace commanastationwww.eternaltemple
{
	// Token: 0x020005DF RID: 1503
	[Token(Token = "0x20005DF")]
	public class HideSelf : MonoBehaviour
	{
		// Token: 0x06003136 RID: 12598 RVA: 0x0006A3AC File Offset: 0x000685AC
		[Token(Token = "0x6003136")]
		[Address(RVA = "0x17034E0", Offset = "0x17024E0", VA = "0x1817034E0")]
		private void Start()
		{
			Material material = base.GetComponent<Renderer>().GetMaterial();
			this.mat = material;
			float @float = this.mat.GetFloat("_Cutoff");
			this.currentAlpha = @float;
		}

		// Token: 0x06003137 RID: 12599 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003137")]
		[Address(RVA = "0x1703610", Offset = "0x1702610", VA = "0x181703610")]
		private IEnumerator unideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003138 RID: 12600 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003138")]
		[Address(RVA = "0x17035A0", Offset = "0x17025A0", VA = "0x1817035A0")]
		private IEnumerator hideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003139 RID: 12601 RVA: 0x0006A3EC File Offset: 0x000685EC
		[Token(Token = "0x6003139")]
		[Address(RVA = "0x17032F0", Offset = "0x17022F0", VA = "0x1817032F0")]
		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: 0x0600313A RID: 12602 RVA: 0x0006A440 File Offset: 0x00068640
		[Token(Token = "0x600313A")]
		[Address(RVA = "0x17033E0", Offset = "0x17023E0", VA = "0x1817033E0")]
		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: 0x0600313B RID: 12603 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600313B")]
		[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600313C RID: 12604 RVA: 0x0006A4A4 File Offset: 0x000686A4
		[Token(Token = "0x600313C")]
		[Address(RVA = "0x1703580", Offset = "0x1702580", VA = "0x181703580")]
		public HideSelf()
		{
		}

		// Token: 0x04003A31 RID: 14897
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003A31")]
		private int collisionEntriesCounter;

		// Token: 0x04003A32 RID: 14898
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003A32")]
		private Material mat;

		// Token: 0x04003A33 RID: 14899
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003A33")]
		private float currentAlpha;

		// Token: 0x04003A34 RID: 14900
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x4003A34")]
		public bool hidable = true;

		// Token: 0x04003A35 RID: 14901
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x4003A35")]
		public float hidingSpeed = 3f;

		// Token: 0x04003A36 RID: 14902
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4003A36")]
		public float minAlpha;

		// Token: 0x04003A37 RID: 14903
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4003A37")]
		public float maxAlpha = 1f;
	}
}
