Unity3D脚本:依顺序点击物体移动脚本.docxVIP

  • 5
  • 0
  • 约小于1千字
  • 约 2页
  • 2019-07-14 发布于湖北
  • 举报

Unity3D脚本:依顺序点击物体移动脚本.docx

Unity3D脚本:依顺序点击物体移动脚本 Posted on 2013年02月04日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 182 次 RaycastHit hit; int num=1; void Update () { if ( Input.GetMouseButtonDown(0) ) { if (Physics.Raycast(Camera.mainCamera.ScreenPointToRay(Input.mousePosition), out hit, 100f)) { if (hit.collider.name == Cube + num) { //这里播放动画 print(hit.collider.name); num++; } } } }

文档评论(0)

1亿VIP精品文档

相关文档