/// <summary> /// Adds a GameScreen object to the top of the list, which makes /// it the de-facto "dominant" GameScreen object /// </summary> public void Push(GameScreen screen) { screens.Add(screen); }
/// <summary> /// Removes the provided Screen from the collection, removing any /// Screen objects sitting on top of it. Talk about this with Justin /// </summary> public void Pop(GameScreen screen) { screens.RemoveRange(screens.IndexOf(screen), screens.Count - 1); }