private void OnDragEnd(MyUIDragDropItem go) { if (ComponentTool.IsInRect(go.GetComponent <UIWidget>(), m_DropPanel, WindowManager.Instance.GetUIRoot().transform.localScale.x)) { OnClickItem(go.gameObject); } }