using UnityEngine;using System.Collections;public class multiplayer_Button : MonoBehaviour {void OnGUI(){const int buttonWidth = ;const int buttonHeight = ;// Determine the button's place on screen// Center in X, 2/3 of the height in YRect buttonRect = new Rect(Screen.width / 2 - (buttonWidth / 2) ,(Screen.height / 2) - (buttonHeight / 2),buttonWidth,buttonHeight);GUIStyle invisibox;invisibox = new GUIStyle ();//invisibox.alignment = TextAnchor.MiddleCenter;//invisibox.normal.textColor = new Color(0,,0);//invisibox.fontSize = ;if(GUI.Button(buttonRect,"",invisibox)){Application.LoadLevel("multSurvival");}}}
推荐整理分享Unity multiplayer,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
完美世界3D格斗手游[格斗宝贝]今日公测 欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有很多Unity3D资源、Unity3D培训视频、Unity3D教程、Unity3D常见问题、Unity3D项目源码,【狗刨学习
Unity3d内置浏览器 uWebKit是一个Unity3d插件,个人认为比较强大,得收藏啊有图有真相:安装以及破解说明:1、导入资源包2、将破解目录里的Editor复制到工程项目的Assets目
unity游戏之咪咕游戏新版SDK:可提升%付费转化率 欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有很多Unity3D资源、Unity3D培训视频、Unity3D教程、Unity3D常见问题、Unity3D项目源码,【狗刨学习