using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001A7 RID: 423
[Token(Token = "0x20001A7")]
public class AreaCheck : SceneEvent
{
	// Token: 0x060013BB RID: 5051 RVA: 0x0002CC10 File Offset: 0x0002AE10
	[Token(Token = "0x60013BB")]
	[Address(RVA = "0xDB3B30", Offset = "0xDB2B30", VA = "0x180DB3B30", 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: 0x060013BC RID: 5052 RVA: 0x0002CC58 File Offset: 0x0002AE58
	[Token(Token = "0x60013BC")]
	[Address(RVA = "0xDB3AC0", Offset = "0xDB2AC0", VA = "0x180DB3AC0", Slot = "10")]
	protected override void OnTriggerEnter(Collider other)
	{
		if (other.CompareTag("Player"))
		{
			this.OpenEvent();
		}
	}

	// Token: 0x060013BD RID: 5053 RVA: 0x0002CC80 File Offset: 0x0002AE80
	[Token(Token = "0x60013BD")]
	[Address(RVA = "0x32DFD0", Offset = "0x32CFD0", VA = "0x18032DFD0")]
	public AreaCheck()
	{
	}

	// Token: 0x04001DD2 RID: 7634
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001DD2")]
	public GameObject[] ShowArea;

	// Token: 0x04001DD3 RID: 7635
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001DD3")]
	public Terrain[] ShowTerrain;
}
