private void Close() { windowSticky = false; _isVisible = false; if (window != null) { window.close(); window = null; } if (compactWindow != null) { compactWindow.Close(); compactWindow = null; } }
private void Open() { if (window_Prefab == null) { return; } if (window != null && window_Obj != null) { window.gameObject.SetActive(true); window.FadeIn(); return; } window_Obj = Instantiate(window_Prefab, getAnchor(), Quaternion.identity) as GameObject; if (window_Obj == null) { return; } SEP_UI_Utilities.processComponents(window_Obj); window_Obj.transform.SetParent(ApplicationLauncher.Instance.appSpace, false); window = window_Obj.GetComponent <SEP_Window>(); if (window == null) { return; } window.setWindow(this); window.gameObject.SetActive(true); }
private void OpenStandard() { if (SEP_UI_Loader.WindowPrefab == null) { return; } if (window != null) { window.FadeIn(false); return; } GameObject obj = Instantiate(SEP_UI_Loader.WindowPrefab) as GameObject; if (obj == null) { return; } obj.transform.SetParent(MainCanvasUtil.MainCanvas.transform, false); window = obj.GetComponent <SEP_Window>(); if (window == null) { return; } window.setWindow(this); window.gameObject.SetActive(true); window.SetPosition(getAnchor()); _isVisible = true; }