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

namespace commanastationwww.eternaltemple
{
	// Token: 0x020005DB RID: 1499
	[Token(Token = "0x20005DB")]
	public class HidablePart : MonoBehaviour
	{
		// Token: 0x0600311E RID: 12574 RVA: 0x0006A0A8 File Offset: 0x000682A8
		[Token(Token = "0x600311E")]
		[Address(RVA = "0x1702BA0", Offset = "0x1701BA0", VA = "0x181702BA0")]
		private void Start()
		{
			Material material = base.GetComponent<Renderer>().GetMaterial();
			this.mat = material;
			float @float = this.mat.GetFloat("_Cutoff");
			this.currentAlpha = @float;
		}

		// Token: 0x0600311F RID: 12575 RVA: 0x0006A0E8 File Offset: 0x000682E8
		[Token(Token = "0x600311F")]
		[Address(RVA = "0x1702CD0", Offset = "0x1701CD0", VA = "0x181702CD0")]
		public void hide()
		{
			base.StopAllCoroutines();
			int num;
			HidablePart.<hideInterpolation>d__9 <hideInterpolation>d__ = new HidablePart.<hideInterpolation>d__9(num);
			num = 0;
			<hideInterpolation>d__.<>4__this = this;
			Coroutine coroutine = base.StartCoroutine(<hideInterpolation>d__);
		}

		// Token: 0x06003120 RID: 12576 RVA: 0x0006A11C File Offset: 0x0006831C
		[Token(Token = "0x6003120")]
		[Address(RVA = "0x1702DC0", Offset = "0x1701DC0", VA = "0x181702DC0")]
		public void unhide()
		{
			base.StopAllCoroutines();
			int num;
			HidablePart.<unhideInterpolation>d__8 <unhideInterpolation>d__ = new HidablePart.<unhideInterpolation>d__8(num);
			num = 0;
			<unhideInterpolation>d__.<>4__this = this;
			Coroutine coroutine = base.StartCoroutine(<unhideInterpolation>d__);
		}

		// Token: 0x06003121 RID: 12577 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003121")]
		[Address(RVA = "0x1702D50", Offset = "0x1701D50", VA = "0x181702D50")]
		private IEnumerator unhideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003122 RID: 12578 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003122")]
		[Address(RVA = "0x1702C60", Offset = "0x1701C60", VA = "0x181702C60")]
		private IEnumerator hideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003123 RID: 12579 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003123")]
		[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0")]
		private void Update()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003124 RID: 12580 RVA: 0x0006A150 File Offset: 0x00068350
		[Token(Token = "0x6003124")]
		[Address(RVA = "0x1702C40", Offset = "0x1701C40", VA = "0x181702C40")]
		public HidablePart()
		{
		}

		// Token: 0x04003A20 RID: 14880
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003A20")]
		private Material mat;

		// Token: 0x04003A21 RID: 14881
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003A21")]
		private float currentAlpha;

		// Token: 0x04003A22 RID: 14882
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003A22")]
		public float fadeOutSpeed = 3f;

		// Token: 0x04003A23 RID: 14883
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003A23")]
		public float minAlpha;

		// Token: 0x04003A24 RID: 14884
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x4003A24")]
		public float maxAlpha = 1f;
	}
}
