ugui 點擊在ui和非ui的判斷

if (Input.GetMouseButtonDown (0) || (Input.touchCount > 0 && Input.GetTouch (0).phase == TouchPhase.Began)) { #if UNITY_IPHONE || UNITY_IOS if (EventSystem.current.IsPointerOverGameObject (Input.Ge
相關文章
相關標籤/搜索