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

namespace commanastationwww.eternaltemple
{
	// Token: 0x02000583 RID: 1411
	[Token(Token = "0x2000583")]
	public class HidablePart : MonoBehaviour
	{
		// Token: 0x06002E55 RID: 11861 RVA: 0x00062DEC File Offset: 0x00060FEC
		[Token(Token = "0x6002E55")]
		[Address(RVA = "0x117C4D0", Offset = "0x117B2D0", VA = "0x18117C4D0")]
		private void Start()
		{
			Material material = base.GetComponent<Renderer>().GetMaterial();
			this.mat = material;
			float @float = this.mat.GetFloat("_Cutoff");
			this.currentAlpha = @float;
		}

		// Token: 0x06002E56 RID: 11862 RVA: 0x00062E2C File Offset: 0x0006102C
		[Token(Token = "0x6002E56")]
		[Address(RVA = "0x117C600", Offset = "0x117B400", VA = "0x18117C600")]
		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: 0x06002E57 RID: 11863 RVA: 0x00062E60 File Offset: 0x00061060
		[Token(Token = "0x6002E57")]
		[Address(RVA = "0x117C6F0", Offset = "0x117B4F0", VA = "0x18117C6F0")]
		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: 0x06002E58 RID: 11864 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E58")]
		[Address(RVA = "0x117C680", Offset = "0x117B480", VA = "0x18117C680")]
		private IEnumerator unhideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E59 RID: 11865 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E59")]
		[Address(RVA = "0x117C590", Offset = "0x117B390", VA = "0x18117C590")]
		private IEnumerator hideInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

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

		// Token: 0x06002E5B RID: 11867 RVA: 0x00062E94 File Offset: 0x00061094
		[Token(Token = "0x6002E5B")]
		[Address(RVA = "0x117C570", Offset = "0x117B370", VA = "0x18117C570")]
		public HidablePart()
		{
		}

		// Token: 0x04003736 RID: 14134
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003736")]
		private Material mat;

		// Token: 0x04003737 RID: 14135
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003737")]
		private float currentAlpha;

		// Token: 0x04003738 RID: 14136
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003738")]
		public float fadeOutSpeed = 3f;

		// Token: 0x04003739 RID: 14137
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003739")]
		public float minAlpha;

		// Token: 0x0400373A RID: 14138
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x400373A")]
		public float maxAlpha = 1f;
	}
}
