public void RemoveInfoPanel(AnnotationInfoPanel infoPanel, AnnotationVisualization annotation) { RectTransform rect = infoPanel.GetComponent <RectTransform>(); annotation.gameObject.SetActive(true); StartCoroutine(CloseInfoPanel(rect, annotation)); }