public virtual void SwitchScreens(CM_UI_Screen screen) { if (screen) { _currentScreen.Close(); _currentScreen = screen; _currentScreen.Open(); } }
public void SwitchScreens(CM_UI_Screen screen) { if (screen) { screen.gameObject.SetActive(true); _currentScreen.Close(); _currentScreen.gameObject.SetActive(false); _currentScreen = screen; _currentScreen.Open(); } }