直接上程式碼
private void FixedUpdate()
{
if (Input.touchCount > 0)
{
// 獲取觸碰點的座標(此為螢幕座標)
float x_touch_position = Input.GetTouch(0).position.x;
float y_touch_position = Input.GetTouch(0).position.y;
}
}
沒有留言:
張貼留言