using System;
using TMPro;
using UnityEngine;

// Token: 0x020000C1 RID: 193
public class MapConfirm : MonoBehaviour
{
	// Token: 0x0600123D RID: 4669 RVA: 0x00162B36 File Offset: 0x00160D36
	private void Start()
	{
		this.contents1.SetActive(false);
		this.anim.enabled = false;
	}

	// Token: 0x0600123E RID: 4670 RVA: 0x00162B50 File Offset: 0x00160D50
	public void StartMenu()
	{
		this.anim.enabled = true;
		this.anim.Play("RestOpen");
		this.text.text = "Are you ready to leave ";
		TextMeshProUGUI textMeshProUGUI = this.text;
		textMeshProUGUI.text += Links.x.diorama.sceneDisplayName;
		TextMeshProUGUI textMeshProUGUI2 = this.text;
		textMeshProUGUI2.text += "?";
		this.contents1.SetActive(true);
	}

	// Token: 0x0600123F RID: 4671 RVA: 0x00162BD5 File Offset: 0x00160DD5
	public void StartEndMenu()
	{
		this.anim.enabled = true;
		this.anim.Play("RestClose");
	}

	// Token: 0x06001240 RID: 4672 RVA: 0x00162BF3 File Offset: 0x00160DF3
	public void EndMenu()
	{
		this.anim.enabled = false;
		this.contents1.SetActive(false);
	}

	// Token: 0x06001241 RID: 4673 RVA: 0x00162C0D File Offset: 0x00160E0D
	public void StartWorldMap()
	{
		Links.x.gaia.ChangeScene("Invimona", this.currentExit.sceneFrom, this.currentExit.subExit);
		this.StartEndMenu();
	}

	// Token: 0x04001E18 RID: 7704
	public GameObject contents1;

	// Token: 0x04001E19 RID: 7705
	public Animator anim;

	// Token: 0x04001E1A RID: 7706
	public MapExitActions currentExit;

	// Token: 0x04001E1B RID: 7707
	public TextMeshProUGUI text;
}
