public void Update() { if (!aligned) { AlignTabs(tabAlign); aligned = true; } if (active && currentWindow) { currentWindow.SetActive(true); } }
/// <summary> /// Sets the active tab window of the group. /// </summary> /// <param name="window"></param> public void SetWindow(QUI_TabWindow window) { if (!windows.Contains(window)) { return; } if (currentWindow) { currentWindow.SetActive(false); } currentWindow = window; if (currentWindow) { currentWindow.SetActive(true); } }