5431人加入学习
(7人评价)
Unity2D中级案例 - 猎宝行动

制作于2018.2.14,基于Unity2017.3

价格 ¥ 235.00
该课程属于 Unity - A计划(永久有效期) 请加入后再学习

if(Inout.GetMosueButton(0))

{

  player.transform.GetChild(0),transform.position+=new Vector3(Input.GetAxis("Mouse X"),0,0);

}

[展开全文]

屏幕坐标转世界坐标

Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, 0) + new Vector3(0, 0, 10));

[展开全文]