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

Unity3D使用System.Windows.Forms.dll的方法

2013-12-30 12:59 585 查看
  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);

  }

  }

更多关于Unity3D的信息,可查询天地会http://unity3d.9tech.cn/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐