摘要: #pragma strictvar smooth=2.0;var tiltAngle=30.0;function Start () {}function Update () { transform.position.x=(Input.mousePosition.x-Screen.width/2)/(Screen.width/2); transform.position.z=(Input.mousePosition.y-Screen.height/2)/(Screen.height/2); Debug.Log(transform.position.x); var tiltAroundZ=Inpu 阅读全文
posted @ 2013-08-28 16:54 yufenghou 阅读(499) 评论(0) 推荐(0)
摘要: #pragma strictvar scrollPosition:Vector2;function Start () { scrollPosition[0]=50; scrollPosition[1]=50;}function Update () {}function OnGUI(){ scrollPosition=GUI.BeginScrollView(Rect(0,0,200,200),scrollPosition, Rect(0,0,Screen.width,300),true,true); GUI.Label(Rect(100,40,Screen.width,30),"测.. 阅读全文
posted @ 2013-08-27 14:56 yufenghou 阅读(384) 评论(0) 推荐(0)
摘要: #pragma strictprivate var editUsername:String;private var editPassword:String;private var editShow:String;function Start () { //初始化赋值 editShow="请您输入正确的用户名与密码"; editUsername="输入用户名"; editPassword="请输入密码";}function Update () {}function OnGUI(){ GUI.Label(Rect(10,10,Screen 阅读全文
posted @ 2013-08-27 11:45 yufenghou 阅读(253) 评论(0) 推荐(0)
摘要: #pragma strictvar buttonTexture:Texture2D;private var str:String;private var frameTime:int;function Start () {//初始化赋值 str="点击按钮吧亲";}function Update () {}function OnGUI(){ //显示提示信息内容 GUI.Label(Rect(10,10,Screen.width,30),str); if(GUI.Button(Rect(10,50,buttonTexture.width,buttonTexture... 阅读全文
posted @ 2013-08-27 11:17 yufenghou 阅读(529) 评论(0) 推荐(0)
摘要: #pragma strictvar str:String;//接收外部复制贴图var imageTexture:Texture;private var imageWidth:int;private var imageHeight:int;private var screenWidth:int;private var screenHeight:int;function Start () { //得到屏幕宽高 screenWidth=Screen.width; screenHeight=Screen.height; //得到图片宽高 imageWidth=imageTexture.width; . 阅读全文
posted @ 2013-08-27 10:59 yufenghou 阅读(1506) 评论(0) 推荐(0)
摘要: 首先创建一个过程CREATE DEFINER = 'root'@'localhost' PROCEDURE `test_proc`( IN create_time VARCHAR(19) ) NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT ''BEGIN declare v_sql varchar(5000); declare v_cdate varchar(6); declare v_alertsql varchar(500); declare v_count inte.. 阅读全文
posted @ 2013-08-19 13:58 yufenghou 阅读(253) 评论(0) 推荐(0)
摘要: 这个问题我搜了一上午都木有解决后来找到一个英文网站It seems that some other bean (one that is not shown) has a property of the ClientDAOImpl type. Since the proxy created implements the ClientDAO interface, but does not extend ClientDAOImpl, you get an exception.Check if any of the other beans have a method of the form: setC 阅读全文
posted @ 2013-08-07 13:44 yufenghou 阅读(348) 评论(0) 推荐(0)
摘要: 在网上查了一下,安装的方法有几种,这里给大家推荐一种快速安装的方法。//第一步 : 下载 site-1.6.5.zip//===============================================你可以到:1.http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=22402.http://subclipse.tigris.org/files/documents/906/46495/site-1.6.5.zip(直接下载)//第二步 : 解压 site-1.6.5.zip//=====... 阅读全文
posted @ 2013-08-05 15:30 yufenghou 阅读(137) 评论(0) 推荐(0)
摘要: MyEclipse中的SVN操作手册1.导入项目点击工具栏上的【File-Import】,进入下图(如果你的对话框中没有SVN这一条目,可能是因为你没有安装SVN插件,请安装完成后,在看这篇博客)点击Next进入下图点击Next进入下图,输入你SVN服务器的IP地址,包括端口号和文件夹等完整路径点击Next进入下图输入用户名/密码,即可成功导入。导入完成后,出现如下图所示界面转载请注明出处:http://blog.sina.com.cn/s/blog_8a3d83320100zhmp.html2.更新(更新到最新版本)如何保证你的项目和服务器上的代码等一致,这就需要更新操作了。在你的项目上点击 阅读全文
posted @ 2013-08-05 15:29 yufenghou 阅读(209) 评论(0) 推荐(0)
摘要: 今天我做了一个程序,一个是用来绘制柱形图的,一个是用来绘制饼图的。绘制柱形图的程序已经写好,于是我想移植到绘制饼图的程序里面。但是我在修改该的时候竟然修改成了柱图的程序,导致柱图无法绘制。以后要注意这个毛病 阅读全文
posted @ 2013-08-02 14:08 yufenghou 阅读(112) 评论(0) 推荐(0)