Example #1
0
    @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);
      }
    }
Example #2
0
 private static void pauseIfUnpaused() {
   if (GameEngine.getTimeMode() == TimeMode.LIVE
       || GameEngine.getTimeMode() == TimeMode.PRECISION) {
     GameEngine.setTimeMode(TimeMode.PAUSED);
   }
 }