/// <summary> /// 是否点击在UI上 /// </summary> /// <returns></returns> private bool IsHoverUI() { IsClickUGUIorNGUI UICheck = IsClickUGUIorNGUI.Instance; if (UICheck && UICheck.isOverUI) { Debug.Log("Is Click UI!"); return(true); } else { return(false); } }
// Use this for initialization void Start() { Instance = this; }