unity3d随笔-1
来源:互联网 发布:樱井知香迅雷种子全集 编辑:程序博客网 时间:2024/05/19 08:23
using System.Collections;using System.Collections.Generic;using UnityEngine;public class test : MonoBehaviour { public string username = ""; public string password = ""; public string ispass ="yes"; void OnGUI() { GUI.Box(new Rect(10, 10, 200, 120),"登录框"); GUI.Label(new Rect(20,40,50,30),"用户名"); username = GUI.TextField(new Rect(70, 40, 120, 20), username); GUI.Label(new Rect(20, 70, 50, 30), "密码"); password = GUI.PasswordField(new Rect(70, 70, 120, 20), password ,'*'); if (GUI.Button(new Rect(70, 100, 50, 25), "登录")) { if (username == "myhaspl" && password == "good123") { ispass = "yes"; } else { ispass = "no"; } } if (ispass=="yes") { GUI.Label(new Rect(120, 100, 50, 25), "正确"); } else if (ispass == "no") { GUI.Label(new Rect(120, 100, 50, 25), "错误"); } }// Use this for initializationvoid Start () {}// Update is called once per framevoid Update () {}}
0 0
- unity3d随笔-1
- Unity3D学习随笔
- 20151102—unity3D随笔
- unity3d随笔-4
- unity3d随笔-5
- unity3d随笔-7
- Unity3d开发过程记录随笔
- Unity3D游戏开发学习随笔
- 随笔1
- 随笔1
- 随笔1
- 随笔1
- 随笔 1
- 随笔1
- 随笔1
- 随笔1
- 随笔1
- 随笔1
- 扩展python 用C语言编写python扩展代码
- FPGA工程建立及其仿真
- 递归的一些方法使用:深度遍历路径中的所有文件和目录,删除一个有文件的文件夹
- Android多渠道打包技术对比
- Android调用JNI出错 java.lang.UnsatisfiedLinkError: No implementation found for的解决方法
- unity3d随笔-1
- linux命令入门
- CheatEngine
- python插件pydev的下载安装
- 单例模式的七中写法
- Jfinal微信服务号开发(一)集成到SrpingMVC
- React Native开发技术周报Issue#21-时隔半年,继续更新周报~
- nalloc分配内存问题
- nginx 基本入门