@Override public void onEnter() { // Unpause if paused. if (GameEngine.getTimeMode() == TimeMode.PAUSED) { GameEngine.revertTimeMode(); } // Collapse event log if expanded. if (EventLog.getIsDisplayModeEnabled(EventLog.DisplayMode.EXPANDED)) { EventLog.toggleDisplayMode(EventLog.DisplayMode.EXPANDED); } }
private static void pauseIfUnpaused() { if (GameEngine.getTimeMode() == TimeMode.LIVE || GameEngine.getTimeMode() == TimeMode.PRECISION) { GameEngine.setTimeMode(TimeMode.PAUSED); } }