public void ChangeScreen(SceneName sceneName) { ScreenData temp = ScreenDataList.Find(x => x.screenName == sceneName); if (currentScreen != null) { currentScreen.Hide(); } currentScreen = temp.screen; currentScreen.Show(); }
public void ShowScreen(UIScreenView screenView) { UICurrentScreenView = screenView; screenView.Show(); screenView.gameObject.SetActive(true); }