private void Show(EnumGuiWindow window, bool enable) { var windowTransform = _windows.ContainsKey(window) ? _windows[window] : null; if (windowTransform != null) { windowTransform.gameObject.SetActive(enable); } }
public void Open(EnumGuiWindow window) { Show(window, true); }
public void Close(EnumGuiWindow window) { Show(window, false); }
public Transform GetWindow(EnumGuiWindow window) { return(_windows.ContainsKey(window) ? _windows[window] : null); }