1
Input.GetTouch(0).phase == TouchPhase.Began
是Input.GetMouseButtonDown (0)
Input.GetMouseButton(0)等效於觸摸嗎?
Input.GetTouch(0).phase == TouchPhase.Ended
相當於是Input.GetMouseButtonUp (0)
什麼是Input.GetMouseButton (0)
等效等價?
可能有助於http://stackoverflow.com/questions/36048106/horrors-of-onpointerdown-versus-onbegindrag-in-unity3d – Fattie
@Dake。很好,你正在學習如何使用Input.GetTouch。傑裏的回答實際上就是你要找的。如果你想在屏幕上檢測一下,使用'Input.touchCount == 1'。要在屏幕上檢測多個觸摸,請使用'Input.touchCount> 0'。答案應該被接受。 – Programmer