public void ActivateScreen(BasicUIScreen screen) { if (currentScreen != null) currentScreen.gameObject.SetActive(false); screen.gameObject.SetActive(true); try { screen.FillText(); } catch (System.NotImplementedException e) { Debug.Log(e.Message); } currentScreen = screen; }
public void ActivateScreenOverlayed(BasicUIScreen screen) { if (overlayScreen.Find(x => x == screen)) return; screen.gameObject.SetActive(true); try { screen.FillText(); } catch (System.NotImplementedException e) { Debug.Log(e.Message); } overlayScreen.Add(screen); }