void OnDisable() { LOGGER.debug("OnDisable - closing popup, winId={0}", windowId); WindowIdManager.releaseWindowId(windowId); isWaitingForMouseUpToClose = false; doEditorLock(false); if (onPopupClosed != null) { onPopupClosed(); } }
protected void openPopup(Vector2 aPoint, params GUILayoutOption[] aLayoutOpts) { if (isOpen()) { closePopup(true); } popupData = new PopupData(); popupData.windowRect = new Rect(aPoint.x, aPoint.y, 10, 10); popupData.layoutOptions = aLayoutOpts; windowStyle = null; windowId = WindowIdManager.getUsableWindowId(); lockId = typeof(UCPopup).FullName + ".Lock" + windowId; isWaitingForMouseUpToClose = false; gameObject.SetActive(true); }