Ejemplo n.º 1
0
    public UIWindow GetWindow(UIWindow.WindowType type)
    {
        foreach (UIWindow window in Windows)
        {
            if (window.Type == type)
            {
                return(window);
            }
        }

        throw new Exception("There is no window of type = " + type);
    }
Ejemplo n.º 2
0
 public void OpenWindow(UIWindow.WindowType type)
 {
     _openedWindow = GetWindow(type);
     _openedWindow.OnOpen();
     Background.SetActive(true);
 }