using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001C4 RID: 452
[Token(Token = "0x20001C4")]
public class SceneEvent : MonoBehaviour
{
	// Token: 0x06001347 RID: 4935 RVA: 0x0002C4F4 File Offset: 0x0002A6F4
	[Token(Token = "0x6001347")]
	[Address(RVA = "0x434DB0", Offset = "0x433BB0", VA = "0x180434DB0", Slot = "4")]
	public virtual void InitData(SceneEventManager SEM)
	{
		this.g_SEM = SEM;
		this.g_bOpenEvent = false;
		if (this.CheckPlayerEnter)
		{
			BoxCollider component = base.GetComponent<BoxCollider>();
			this.g_BC = component;
			BoxCollider boxCollider = this.g_BC;
			int num = 0;
			if (boxCollider == num)
			{
				Debug.LogError(base.name + " : 找不到BoxCollider");
			}
		}
	}

	// Token: 0x06001348 RID: 4936 RVA: 0x0002C550 File Offset: 0x0002A750
	[Token(Token = "0x6001348")]
	[Address(RVA = "0x434F50", Offset = "0x433D50", VA = "0x180434F50", Slot = "5")]
	public virtual void OpenEvent()
	{
		this.g_bOpenEvent = true;
	}

	// Token: 0x06001349 RID: 4937 RVA: 0x0002C564 File Offset: 0x0002A764
	[Token(Token = "0x6001349")]
	[Address(RVA = "0x434F50", Offset = "0x433D50", VA = "0x180434F50", Slot = "6")]
	public virtual void OpenEvent(Transform OpenEventPos)
	{
		this.g_bOpenEvent = true;
	}

	// Token: 0x0600134A RID: 4938 RVA: 0x0002C578 File Offset: 0x0002A778
	[Token(Token = "0x600134A")]
	[Address(RVA = "0x434D40", Offset = "0x433B40", VA = "0x180434D40", Slot = "7")]
	public virtual bool GetIsOpenEvent()
	{
		return this.g_bOpenEvent;
	}

	// Token: 0x0600134B RID: 4939 RVA: 0x0002C58C File Offset: 0x0002A78C
	[Token(Token = "0x600134B")]
	[Address(RVA = "0x434F60", Offset = "0x433D60", VA = "0x180434F60", Slot = "8")]
	public virtual void ReleaseEvent()
	{
		this.g_bReleaseEvent = true;
	}

	// Token: 0x0600134C RID: 4940 RVA: 0x0002C5A0 File Offset: 0x0002A7A0
	[Token(Token = "0x600134C")]
	[Address(RVA = "0x434D50", Offset = "0x433B50", VA = "0x180434D50", Slot = "9")]
	public virtual bool GetIsReleaseEvent()
	{
		return this.g_bReleaseEvent;
	}

	// Token: 0x0600134D RID: 4941 RVA: 0x0002C5B4 File Offset: 0x0002A7B4
	[Token(Token = "0x600134D")]
	[Address(RVA = "0x434ED0", Offset = "0x433CD0", VA = "0x180434ED0", Slot = "10")]
	protected virtual void OnTriggerEnter(Collider other)
	{
		if (this.CheckPlayerEnter && !this.g_bOpenEvent && other.CompareTag("Player"))
		{
			this.OpenEvent();
		}
	}

	// Token: 0x0600134E RID: 4942 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x600134E")]
	[Address(RVA = "0x297F00", Offset = "0x296D00", VA = "0x180297F00", Slot = "11")]
	protected virtual void OnTriggerExit(Collider other)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x0600134F RID: 4943 RVA: 0x0002C5F0 File Offset: 0x0002A7F0
	[Token(Token = "0x600134F")]
	[Address(RVA = "0x434F70", Offset = "0x433D70", VA = "0x180434F70", Slot = "12")]
	public virtual void ResetEvent()
	{
		this.g_bOpenEvent = false;
	}

	// Token: 0x06001350 RID: 4944 RVA: 0x0002C604 File Offset: 0x0002A804
	[Token(Token = "0x6001350")]
	[Address(RVA = "0x434D60", Offset = "0x433B60", VA = "0x180434D60")]
	protected float GetWorldDeltaTime()
	{
		return Game.GetStageDeltaTime();
	}

	// Token: 0x06001351 RID: 4945 RVA: 0x0002C618 File Offset: 0x0002A818
	[Token(Token = "0x6001351")]
	[Address(RVA = "0x432580", Offset = "0x431380", VA = "0x180432580")]
	public SceneEvent()
	{
	}

	// Token: 0x04001E16 RID: 7702
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001E16")]
	protected SceneEventManager g_SEM;

	// Token: 0x04001E17 RID: 7703
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4001E17")]
	public bool CheckPlayerEnter = true;

	// Token: 0x04001E18 RID: 7704
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4001E18")]
	protected BoxCollider g_BC;

	// Token: 0x04001E19 RID: 7705
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4001E19")]
	protected bool g_bOpenEvent;

	// Token: 0x04001E1A RID: 7706
	[FieldOffset(Offset = "0x31")]
	[Token(Token = "0x4001E1A")]
	protected bool g_bReleaseEvent;
}
