using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000179 RID: 377
[Token(Token = "0x2000179")]
public class AreaCheck : SceneEvent
{
	// Token: 0x06001237 RID: 4663 RVA: 0x00029934 File Offset: 0x00027B34
	[Token(Token = "0x6001237")]
	[Address(RVA = "0x8CF2A0", Offset = "0x8CE0A0", VA = "0x1808CF2A0", Slot = "5")]
	public override void OpenEvent()
	{
		if (this.ShowArea.Length != 0)
		{
			base.OpenEvent();
			SceneEventManager g_SEM = this.g_SEM;
			Terrain[] showTerrain = this.ShowTerrain;
			GameObject[] showArea = this.ShowArea;
			g_SEM.AreaCheck(showArea, showTerrain);
			return;
		}
	}

	// Token: 0x06001238 RID: 4664 RVA: 0x0002997C File Offset: 0x00027B7C
	[Token(Token = "0x6001238")]
	[Address(RVA = "0x8CF230", Offset = "0x8CE030", VA = "0x1808CF230", Slot = "10")]
	protected override void OnTriggerEnter(Collider other)
	{
		if (other.CompareTag("Player"))
		{
			this.OpenEvent();
		}
	}

	// Token: 0x06001239 RID: 4665 RVA: 0x000299A4 File Offset: 0x00027BA4
	[Token(Token = "0x6001239")]
	[Address(RVA = "0x30DE20", Offset = "0x30CC20", VA = "0x18030DE20")]
	public AreaCheck()
	{
	}

	// Token: 0x04001C34 RID: 7220
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001C34")]
	public GameObject[] ShowArea;

	// Token: 0x04001C35 RID: 7221
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001C35")]
	public Terrain[] ShowTerrain;
}
