private void OnMouseOver() { if (Input.GetMouseButtonUp(1) && isAssignAbleTo && !EventSystem.current.IsPointerOverGameObject()) { selectManager.AssignTo(this); } }