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

namespace commanastationwww.eternaltemple
{
	// Token: 0x0200057E RID: 1406
	[Token(Token = "0x200057E")]
	public class Door_Controller : MonoBehaviour
	{
		// Token: 0x06002E3A RID: 11834 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E3A")]
		[Address(RVA = "0xA57F40", Offset = "0xA56D40", VA = "0x180A57F40")]
		private void Start()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E3B RID: 11835 RVA: 0x00062B48 File Offset: 0x00060D48
		[Token(Token = "0x6002E3B")]
		[Address(RVA = "0xA57E20", Offset = "0xA56C20", VA = "0x180A57E20")]
		private void OnTriggerEnter(Collider other)
		{
			if (!this.locked)
			{
				base.StopAllCoroutines();
				int num;
				Door_Controller.<openInterpolation>d__8 <openInterpolation>d__ = new Door_Controller.<openInterpolation>d__8(num);
				num = 0;
				<openInterpolation>d__.<>4__this = this;
				Coroutine coroutine = base.StartCoroutine(<openInterpolation>d__);
			}
		}

		// Token: 0x06002E3C RID: 11836 RVA: 0x00062B84 File Offset: 0x00060D84
		[Token(Token = "0x6002E3C")]
		[Address(RVA = "0xA57EB0", Offset = "0xA56CB0", VA = "0x180A57EB0")]
		private void OnTriggerExit(Collider other)
		{
			if (!this.stayOpen)
			{
				base.StopAllCoroutines();
				int num;
				Door_Controller.<closeInterpolation>d__9 <closeInterpolation>d__ = new Door_Controller.<closeInterpolation>d__9(num);
				num = 0;
				<closeInterpolation>d__.<>4__this = this;
				Coroutine coroutine = base.StartCoroutine(<closeInterpolation>d__);
			}
		}

		// Token: 0x06002E3D RID: 11837 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E3D")]
		[Address(RVA = "0xA58140", Offset = "0xA56F40", VA = "0x180A58140")]
		private IEnumerator openInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E3E RID: 11838 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E3E")]
		[Address(RVA = "0xA580D0", Offset = "0xA56ED0", VA = "0x180A580D0")]
		private IEnumerator closeInterpolation()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E3F RID: 11839 RVA: 0x00062BC0 File Offset: 0x00060DC0
		[Token(Token = "0x6002E3F")]
		[Address(RVA = "0xA57E20", Offset = "0xA56C20", VA = "0x180A57E20")]
		public void Open()
		{
			if (!this.locked)
			{
				base.StopAllCoroutines();
				int num;
				Door_Controller.<openInterpolation>d__8 <openInterpolation>d__ = new Door_Controller.<openInterpolation>d__8(num);
				num = 0;
				<openInterpolation>d__.<>4__this = this;
				Coroutine coroutine = base.StartCoroutine(<openInterpolation>d__);
			}
		}

		// Token: 0x06002E40 RID: 11840 RVA: 0x00062BFC File Offset: 0x00060DFC
		[Token(Token = "0x6002E40")]
		[Address(RVA = "0xA57DA0", Offset = "0xA56BA0", VA = "0x180A57DA0")]
		public void Close()
		{
			base.StopAllCoroutines();
			int num;
			Door_Controller.<closeInterpolation>d__9 <closeInterpolation>d__ = new Door_Controller.<closeInterpolation>d__9(num);
			num = 0;
			<closeInterpolation>d__.<>4__this = this;
			Coroutine coroutine = base.StartCoroutine(<closeInterpolation>d__);
		}

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

		// Token: 0x06002E42 RID: 11842 RVA: 0x00062C30 File Offset: 0x00060E30
		[Token(Token = "0x6002E42")]
		[Address(RVA = "0xA580B0", Offset = "0xA56EB0", VA = "0x180A580B0")]
		public Door_Controller()
		{
		}

		// Token: 0x04003720 RID: 14112
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003720")]
		public bool stayOpen = true;

		// Token: 0x04003721 RID: 14113
		[FieldOffset(Offset = "0x19")]
		[Token(Token = "0x4003721")]
		public bool locked;

		// Token: 0x04003722 RID: 14114
		[FieldOffset(Offset = "0x1C")]
		[Token(Token = "0x4003722")]
		public float openingSpeed = 5f;

		// Token: 0x04003723 RID: 14115
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003723")]
		private Transform[] allTransform;

		// Token: 0x04003724 RID: 14116
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003724")]
		private Transform[] childrenTransform;
	}
}
