private void Close() { _sticky = false; if (launcher == null) { return; } launcher.Close(); launcher = null; }
private void Open() { if (launcher != null) { return; } if (BasicDeltaV_Loader.ToolbarPrefab == null) { return; } launcher = (Instantiate(BasicDeltaV_Loader.ToolbarPrefab, GetAnchor(), Quaternion.identity) as GameObject).GetComponent <BasicDeltaV_AppWindow>(); if (launcher == null) { return; } launcher.transform.SetParent(UIMasterController.Instance.appCanvas.transform); launcher.setBasic(BasicDeltaV.Instance); }