获取鼠标
mousePositionOnScreen = Input.mousePosition;
Vector3 mousePositionInWorld = Camera.main.ScreenToWorldPoint(mousePositionOnScreen);
transform.position = new Vector3(mousePositionInWorld.x*MoveSheep*Time.deltaTime, 0, 0);
获取鼠标坐标
最新推荐文章于 2024-05-26 10:03:42 发布