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(); } }
private void Start() { _currentScreen = startScreen; _currentScreen.Open(); InitializeScreens(); if (fader) { fader.gameObject.SetActive(true); } FadeIn(); }