using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
// 调用声明
using MsgBoxBase = System.Windows.Forms.MessageBox;
using WinForms = System.Windows.Forms;
public class yaoshi2 : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnMouseDown()
{
// 调用弹框并获取点击结果
WinForms.DialogResult res = MsgBoxBase.Show("找到了一把钥匙,好像是逃离这个地方的。(点击OK退出游戏)", "点击钥匙", WinForms.MessageBoxButtons.OKCancel);
string res_str = res.ToString();
if(res_str == "OK")
{
Application.Quit();
}
}
}