您的位置:首页 > 移动开发 > Unity3D

Unity3D使用System.Windows.Forms.dll

2013-10-22 12:27 344 查看


using UnityEngine;
using System.Collections;
using System.Windows.Forms;

public class Test : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    void OnGUI()
    {
        if (GUI.Button(new Rect(0, 0, 100, 20), "Button"))
        {
            MessageBoxYesCancel("yes");
        }
    }

    public static DialogResult MessageBoxYesCancel(string Information)//通用弹出式信息显示对话框方法(进行互操作)返回***感汉号
    {
        string caption = "【系统提示】";
        MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel;

        return MessageBox.Show(Information, caption, buttons, MessageBoxIcon.Question);
    }

    
}


playersettings optimization api compatibility level .NET 2.0

需要添加引用System.Deployment

下载所需的两个dll
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐