public void HideScreen <T>() where T : GUIScreen { GUIScreen foundScreen = FoundScreen <T>(); if (foundScreen != null) { foundScreen.Hide(); } }
public void HideScreen <T>() where T : GUIScreen { GUIScreen foundScreen = FoundScreen <T>(); if (foundScreen != null) { foundScreen.Hide(); SortByLayer(); } else { Debug.LogWarning("Screen " + typeof(T) + " not found!"); } }
public void PopScreen() { if (screenStack.Count == 0) { return; } GUIScreen curScreen = screenStack.Pop(); curScreen.Hide(); if (screenStack.Count > 0) { GUIScreen newScreen = screenStack.Peek(); newScreen.Show(); } }