public void Update() { currentScreen.Update(); if (nextScreen != null) { currentScreen = nextScreen; nextScreen = null; } }
public void SetScreen(Screen screen, float fade = 0) { currentScreen = screen; screen.ScreenManager = this; }
public ScreenManager(Screen screen, float fade = 0) { SetScreen(screen, fade); }