예제 #1
0
        public void SetGameScreen(UIScreen screen)
        {
            Painter.Pause();

            if (currentScreen != null)
            {
                currentScreen.RemoveFromPainter();
            }
            currentScreen = screen;
            if (currentScreen != null)
            {
                currentScreen.AddToPainter();
            }

            Painter.Resume();
        }