脚本800个教程平移游戏对象.pdfVIP

  • 1
  • 0
  • 约小于1千字
  • 约 1页
  • 2023-08-09 发布于北京
  • 举报
平移游戏对象 Posted on 2013 年 07 月 19 日 by U3d / Unity3D / 插件 / 被围观 26 次 01 void OnGUI () 02 { 03 if (GUILayout.Button (向前移动, GUILayout.Height (50))) 04 { 05 obj.transform.Translate (Vector3 .forward * Time.deltaTime); 06 } 07 if (GUILayout.Button (向后移动, GUILayout.Height (50))) 08 { 09 obj.transform.Translate (-Vector3 .forward * Time.deltaTime); 10 } 11 if (GUILayout.Button (向左移动, GUILayout.Height (50))) 12 { 13 obj.transform.Translate (Vector3 .left * Time.del

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档