public void Close() { if (m_Opened) { m_Opened = false; m_AnimationPosition = 0.00f; if (m_ProgressiveSearch != null) { m_ProgressiveSearch.Abort(); } m_PDFViewer.SetSearchResults(null); if (EventSystem.current.currentSelectedGameObject == m_InputField.gameObject) { EventSystem.current.SetSelectedGameObject(null, null); } } }