Example #1
0
 /// <summary>
 /// Add window to stack.
 /// </summary>
 private void AddWindow(UserInterfaceWindow window)
 {
     windows.Push(window);
     window.OnPush();
     if (window.PauseWhileOpen && GameManager.HasInstance)
     {
         GameManager.Instance.PauseGame(true);
     }
 }
Example #2
0
 /// <summary>
 /// Add window to stack.
 /// </summary>
 private void AddWindow(UserInterfaceWindow window)
 {
     windows.Push(window);
     window.OnPush();
     //OnWindowChange += window.WindowChanged;
     if (window.PauseWhileOpen)
     {
         GameManager.Instance.PauseGame(true);
     }
 }
 /// <summary>
 /// Add window to stack.
 /// </summary>
 private void AddWindow(UserInterfaceWindow window)
 {
     windows.Push(window);
     window.OnPush();
     //OnWindowChange += window.WindowChanged;
     if(window.PauseWhileOpen && GameManager.HasInstance)
         GameManager.Instance.PauseGame(true);
 }