Beispiel #1
0
        public virtual void SwitchScreens(CM_UI_Screen screen)
        {
            if (screen)
            {
                _currentScreen.Close();

                _currentScreen = screen;
                _currentScreen.Open();
            }
        }
Beispiel #2
0
        public void SwitchScreens(CM_UI_Screen screen)
        {
            if (screen)
            {
                screen.gameObject.SetActive(true);
                _currentScreen.Close();

                _currentScreen.gameObject.SetActive(false);
                _currentScreen = screen;
                _currentScreen.Open();
            }
        }