public void OnEndDrag(PointerEventData eventData) { if (m_DraggingIcon != null) { Destroy(m_DraggingIcon); } MovementComponent.MouseToCellPos(Input.mousePosition); // Debug.Log(Input.mousePosition+ " " + MovementComponent.MouseToCellPos(Input.mousePosition)); }