29 lines
546 B
C#
29 lines
546 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Valheim
|
|
{
|
|
public class ExitPanel : MonoBehaviour
|
|
{
|
|
public static void Show()
|
|
{
|
|
WorldUIManager.Ins.Cover("UI/ExitPanel", false);
|
|
}
|
|
|
|
public void SelectCanel()
|
|
{
|
|
WorldUIManager.Ins.Back();
|
|
}
|
|
|
|
public void SelectConfirm()
|
|
{
|
|
#if UNITY_EDITOR
|
|
UnityEditor.EditorApplication.isPlaying = false;
|
|
#else
|
|
Application.Quit();
|
|
#endif
|
|
}
|
|
}
|
|
}
|