/// <summary> /// Used for transitioning between game screens /// Pausing polling for input and runs the transition effect for the screen /// The transition effect class currently isn't working /// The transition effect should default to a black fade /// </summary> /// <param name="nextScreen"></param> public void ChangeScreens(String nextScreen) { isTransitioning = true; CurrentScreen.ScreenTrasitionEffect(); PreviousScreen = CurrentScreen; CurrentScreen = ScreenFactory.CreateScreen(nextScreen); LoadContent(Content); isTransitioning = false; }
public void Init(GameScreen nxtscrn) { nextScreen = nxtscrn; }