Beispiel #1
0
 public void togglePause()
 {
     if (thread.getState() == GameState.RUNNING)
     {
         thread.pause();
         gameViewController.shadowViews();
     }
     else if (thread.getState() == GameState.PAUSED)
     {
         thread.resume();
         gameViewController.unshadowViews();
     }
 }