using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000201 RID: 513
[Token(Token = "0x2000201")]
public class SceneEvent : MonoBehaviour
{
	// Token: 0x060014FB RID: 5371 RVA: 0x0002FD78 File Offset: 0x0002DF78
	[Token(Token = "0x60014FB")]
	[Address(RVA = "0x50F250", Offset = "0x50E250", VA = "0x18050F250", 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: 0x060014FC RID: 5372 RVA: 0x0002FDD4 File Offset: 0x0002DFD4
	[Token(Token = "0x60014FC")]
	[Address(RVA = "0x50F3F0", Offset = "0x50E3F0", VA = "0x18050F3F0", Slot = "5")]
	public virtual void OpenEvent()
	{
		this.g_bOpenEvent = true;
	}

	// Token: 0x060014FD RID: 5373 RVA: 0x0002FDE8 File Offset: 0x0002DFE8
	[Token(Token = "0x60014FD")]
	[Address(RVA = "0x50F3F0", Offset = "0x50E3F0", VA = "0x18050F3F0", Slot = "6")]
	public virtual void OpenEvent(Transform OpenEventPos)
	{
		this.g_bOpenEvent = true;
	}

	// Token: 0x060014FE RID: 5374 RVA: 0x0002FDFC File Offset: 0x0002DFFC
	[Token(Token = "0x60014FE")]
	[Address(RVA = "0x4920D0", Offset = "0x4910D0", VA = "0x1804920D0", Slot = "7")]
	public virtual bool GetIsOpenEvent()
	{
		return this.g_bOpenEvent;
	}

	// Token: 0x060014FF RID: 5375 RVA: 0x0002FE10 File Offset: 0x0002E010
	[Token(Token = "0x60014FF")]
	[Address(RVA = "0x50F400", Offset = "0x50E400", VA = "0x18050F400", Slot = "8")]
	public virtual void ReleaseEvent()
	{
		this.g_bReleaseEvent = true;
	}

	// Token: 0x06001500 RID: 5376 RVA: 0x0002FE24 File Offset: 0x0002E024
	[Token(Token = "0x6001500")]
	[Address(RVA = "0x50F1F0", Offset = "0x50E1F0", VA = "0x18050F1F0", Slot = "9")]
	public virtual bool GetIsReleaseEvent()
	{
		return this.g_bReleaseEvent;
	}

	// Token: 0x06001501 RID: 5377 RVA: 0x0002FE38 File Offset: 0x0002E038
	[Token(Token = "0x6001501")]
	[Address(RVA = "0x50F370", Offset = "0x50E370", VA = "0x18050F370", Slot = "10")]
	protected virtual void OnTriggerEnter(Collider other)
	{
		if (this.CheckPlayerEnter && !this.g_bOpenEvent && other.CompareTag("Player"))
		{
			this.OpenEvent();
		}
	}

	// Token: 0x06001502 RID: 5378 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001502")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0", Slot = "11")]
	protected virtual void OnTriggerExit(Collider other)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001503 RID: 5379 RVA: 0x0002FE74 File Offset: 0x0002E074
	[Token(Token = "0x6001503")]
	[Address(RVA = "0x50F410", Offset = "0x50E410", VA = "0x18050F410", Slot = "12")]
	public virtual void ResetEvent()
	{
		this.g_bOpenEvent = false;
	}

	// Token: 0x06001504 RID: 5380 RVA: 0x0002FE88 File Offset: 0x0002E088
	[Token(Token = "0x6001504")]
	[Address(RVA = "0x50F200", Offset = "0x50E200", VA = "0x18050F200")]
	protected float GetWorldDeltaTime()
	{
		return Game.GetStageDeltaTime();
	}

	// Token: 0x06001505 RID: 5381 RVA: 0x0002FE9C File Offset: 0x0002E09C
	[Token(Token = "0x6001505")]
	[Address(RVA = "0x5051A0", Offset = "0x5041A0", VA = "0x1805051A0")]
	public SceneEvent()
	{
	}

	// Token: 0x04001FEC RID: 8172
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001FEC")]
	protected SceneEventManager g_SEM;

	// Token: 0x04001FED RID: 8173
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4001FED")]
	public bool CheckPlayerEnter = true;

	// Token: 0x04001FEE RID: 8174
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4001FEE")]
	protected BoxCollider g_BC;

	// Token: 0x04001FEF RID: 8175
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4001FEF")]
	protected bool g_bOpenEvent;

	// Token: 0x04001FF0 RID: 8176
	[FieldOffset(Offset = "0x31")]
	[Token(Token = "0x4001FF0")]
	protected bool g_bReleaseEvent;
}
