06 2011 档案

摘要: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 阅读(1924) 评论(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 阅读(218) 评论(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 阅读(1343) 评论(0) 推荐(0)