using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200017D RID: 381
[Token(Token = "0x200017D")]
public class BGMSwitch : SceneEvent
{
	// Token: 0x06001247 RID: 4679 RVA: 0x00029CC0 File Offset: 0x00027EC0
	[Token(Token = "0x6001247")]
	[Address(RVA = "0x8D2FD0", Offset = "0x8D1DD0", VA = "0x1808D2FD0", Slot = "5")]
	public override void OpenEvent()
	{
		base.OpenEvent();
		SceneBGMController bgm = Game.sceneManager.BGM;
		int bgmindex = this.BGMIndex;
		bgm.SwitchBGM(bgmindex);
	}

	// Token: 0x06001248 RID: 4680 RVA: 0x00029CF4 File Offset: 0x00027EF4
	[Token(Token = "0x6001248")]
	[Address(RVA = "0x8D2EE0", Offset = "0x8D1CE0", VA = "0x1808D2EE0", Slot = "11")]
	protected override void OnTriggerExit(Collider other)
	{
		base.OnTriggerExit(other);
		this.g_bOpenEvent = false;
		SceneBGMController bgm = Game.sceneManager.BGM;
		int exitBGMIndex = this.ExitBGMIndex;
		bgm.SwitchBGM(exitBGMIndex);
	}

	// Token: 0x06001249 RID: 4681 RVA: 0x00029D30 File Offset: 0x00027F30
	[Token(Token = "0x6001249")]
	[Address(RVA = "0x8D30A0", Offset = "0x8D1EA0", VA = "0x1808D30A0")]
	public BGMSwitch()
	{
	}

	// Token: 0x04001C4D RID: 7245
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001C4D")]
	public int BGMIndex;

	// Token: 0x04001C4E RID: 7246
	[FieldOffset(Offset = "0x3C")]
	[Token(Token = "0x4001C4E")]
	public int ExitBGMIndex = (int)((ulong)4294967295L);
}
