08 2012 档案

摘要:Windows系统Unity3D中的快捷键组合键键功能File 文件CtrlNNew Scene 新建场景CtrlOOpen Scene 打开场景CtrlSSave Scene 保存CtrlShiftSSave Scene as 保存场景为CtrlShiftBBuild Settings... 编译设置...CtrlBBuild and run 编译并运行Edit 编辑CtrlZUndo 撤消CtrlYRedo 重做CtrlXCut 剪切CtrlCCopy 拷贝CtrlVPaste 粘贴CtrlDDuplicate 复制ShiftDelDelete 删除FFrame selected 选择的帧 阅读全文
posted @ 2012-08-23 11:28 渡蓝 阅读(951) 评论(0) 推荐(1)
摘要:概念了解:1、什么是匿名委托(匿名方法的简单介绍、为什么要用匿名方法)2、匿名方法的【拉姆达表达式】方法定义3、匿名方法的调用(匿名方法的参数传递、使用过程中需要注意什么)什么是匿名方法?匿名方法是C#2.0引入的一个新特性,它允许开发者声明自己的函数代码而无须使用委托函数。C#为委托提供一种机制,可以为委托定义匿名方法,匿名方法没有名称,编译器会定指定一个名称,匿名方法中不能使用跳转语句跳转到该匿名方法的外部,也不能跳转到该方法的内部。也不能在匿名方法外部使用的ref和out参数。通过使用匿名方法,可以不必创建单独的方法,因此减少了实例化委托所需的编码系统开销。例如,如果创建方法所需的系统开 阅读全文
posted @ 2012-08-17 14:23 渡蓝 阅读(7506) 评论(3) 推荐(0)
摘要:http://game.ceeger.com/Script/Application/Application.CaptureScreenshot.html[java]function OnGUI(){ if(GUI.Button(Rect(Screen.width*0.5-50,Screen.height*0.5-50,100,100),"screen")){ Application.CaptureScreenshot("Screenshot.png"); }}【c#】using UnityEngine; using System.Collections; 阅读全文
posted @ 2012-08-08 18:24 渡蓝 阅读(1711) 评论(0) 推荐(0)
摘要:using UnityEngine;using System.Collections;public class RonmandMove : MonoBehaviour { // Use this for initialization Vector3 randomPoint = Vector3.zero; bool moving = false; void Awake() { randomPoint = new Vector3(Random.Range(-30,30),transform.position.y,Rand... 阅读全文
posted @ 2012-08-02 14:10 渡蓝 阅读(351) 评论(0) 推荐(0)