Exemplo n.º 1
0
    public void startWindow(BaseUiController window, bool removeTop)
    {
        if (windows.Count > 0)
        {
            BaseUiController lastWindow = windows[windows.Count - 1];
            if (removeTop)
            {
                lastWindow.pauseWindow();
                lastWindow.stopWindow();
                windows.RemoveAt(windows.Count - 1);
            }
            else
            {
                lastWindow.pauseWindow();
            }

        }
        windows.Add(window);
        window.startWindow();
        window.resumeWindow();
    }