Пример #1
0
        private void Show(EnumGuiWindow window, bool enable)
        {
            var windowTransform = _windows.ContainsKey(window) ? _windows[window] : null;

            if (windowTransform != null)
            {
                windowTransform.gameObject.SetActive(enable);
            }
        }
Пример #2
0
 public void Open(EnumGuiWindow window)
 {
     Show(window, true);
 }
Пример #3
0
 public void Close(EnumGuiWindow window)
 {
     Show(window, false);
 }
Пример #4
0
 public Transform GetWindow(EnumGuiWindow window)
 {
     return(_windows.ContainsKey(window) ? _windows[window] : null);
 }