/// <summary> /// 更新觸控事件 /// </summary> private void UpdateTouchEvent() { if (Input.touchCount>0) { if (Input.GetTouch(0).phase== TouchPhase.Began) { //Input.mousePosition = Input.GetTouch(0).position; } else if (Input.GetTouch(0).phase == TouchPhase.Moved) { } else if(Input.GetTouch(0).phase == TouchPhase.Ended) { } } }