上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页
摘要: --------------按钮控制部分--GUITest.js--------------------------------------------var ButtonsActive = true; var speed = 15.0;private var switchMenu : String = "OFF";function OnGUI () { if(GUI.Button(Rect(52,0,50,30),"Quit")){ Application.Quit();}if(GUI.Button(Rect(0,0,50,30),switchMenu 阅读全文
posted @ 2011-07-23 21:22 softimagewht 阅读(331) 评论(0) 推荐(0)
摘要: //被敌人发现的距离var awareDistance:float=15.0f; //敌人受惊吓后引发动作的距离var scareDistance:float=10.0f;//玩家角色var player:Transform;//奔跑速度var runSpeed:float=4.0f;//状态机枚举enum AIStatus { idel=0,scared=1};//状态机,初始化为闲置状态private var status=AIStatus.idel;//角色控制器var Controller:CharacterController;//移动方向private var moveDistan 阅读全文
posted @ 2011-07-22 20:02 softimagewht 阅读(235) 评论(0) 推荐(0)
摘要: SyntaxProperties { Property [Property ...] }Defines the property block. Inside braces multiple properties are defined as follows.name ("display name", Range (min, max)) = numberDefines a float property, represented as a slider from min to maxin the inspector.name ("display name", 阅读全文
posted @ 2011-07-20 17:10 softimagewht 阅读(602) 评论(0) 推荐(0)
摘要: float4x4 WorldITXf : WorldInverseTranspose < string UIWidget="None"; >;//把法线从局部空间变换到世界空间float4x4 ViewIXf : ViewInverse < string UIWidget="None"; >;//把Vector从观察空间变换到世界空间float4x4 WvpXf : WorldViewProjection < string UIWidget="None"; >;//从物体空间转为裁剪空间float4 阅读全文
posted @ 2011-07-10 13:19 softimagewht 阅读(470) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/chpdirect1984/article/details/1911622http://msdn.microsoft.com/en-us/library/bb509704(v=vs.85).aspxhttp://pro.it165.net/html/201106/45.htmlhttp://developer.download.nvidia.com/shaderlibrary/webpages/hlsl_shaders.htmlhttp://nshader.codeplex.com/ 阅读全文
posted @ 2011-07-09 21:22 softimagewht 阅读(476) 评论(0) 推荐(0)
摘要: float4 AmbientColor : Ambient< string UIName = "Ambient Color";> = {0.25f, 0.25f, 0.25f, 1.0f};float4 DiffuseColor : Diffuse< string UIName = "Diffuse Color";> = {1.0f, 1.0f, 1.0f, 1.0f};texture diffuseMap : DiffuseMap< string name = "default_color.dds";s 阅读全文
posted @ 2011-07-06 16:53 softimagewht 阅读(652) 评论(0) 推荐(0)
摘要: //UI interfacefloat4 AmbientColor : Ambient< string UIName = "Ambient";> = (0.25f,0.25f,0.25f,0.1f);float4 DiffuseColor : Diffuse< string UIName = "Diffuse";> = (0.25f,0.25f,0.25f,0.1f);texture diffuseMap : DiffuseMap< string name = "defaut"; string UINam 阅读全文
posted @ 2011-07-06 11:30 softimagewht 阅读(381) 评论(0) 推荐(0)
摘要: private var character :CharacterController;private var trans:Transform;var speed : float = 3;var rotateSpeed : float = 3.0;function Start(){ character = GetComponent(CharacterController); trans= transform ;}function Update () { var moveDirection = trans.up; moveDirection += Physics.gravity; characte 阅读全文
posted @ 2011-06-20 17:06 softimagewht 阅读(1922) 评论(0) 推荐(0)
摘要: var cam : Transform;var cameraRelativeRight : Vector3;// Apply a force relative to the camera's x-axisfunction Update(){ cameraRelativeRight = cam.TransformDirection (Vector3.right); cameraRelativeRight.y = 0; transform.rotation = Quaternion.RotateTowards (transform.rotation, Quaternion.LookRota 阅读全文
posted @ 2011-06-20 13:35 softimagewht 阅读(213) 评论(0) 推荐(0)
摘要: function shui(){ //水印处理函数if (!win.group.shuiSet.other.open.e.text) {alert("您没有选择水印文件");}else{var shuiFlie = File(win.group.shuiSet.other.open.e.text);docShui= open(shuiFlie);docShui.changeMode(ChangeMode.RGB);if (docShui.layers.length>1) docShui.mergeVisibleLayers(); //合并可见层var shuiLaye 阅读全文
posted @ 2011-06-02 08:10 softimagewht 阅读(1330) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 30 下一页