示例#1
0
 public void CreateSandbox()
 {
     Jart.clearJart();
     gameStarted = true;
     MainMenuUI.SetActive(false);
     Cursor.visible = false;
     Resume();
     SetCameraPosition.CenterCameraOnJartboard();
 }
示例#2
0
 private void Start()
 {
     gameStarted = false;
     MainMenuUI.SetActive(true);
     // note: this main menu music will be stopped by
     // the creation of a new jart, because when an old
     // jart gets cleaned up, so do all oscillators.
     Jart.StartMainMenuMusic();
 }
示例#3
0
 public void ViewJart()
 {
     Jart.NewJart();
     gameStarted = true;
     MainMenuUI.SetActive(false);
     Cursor.visible = false;
     Resume();
     SetCameraPosition.CenterCameraOnJartboard();
 }
示例#4
0
 void Update()
 {
     // esc key to show pause menu, if we've started the game
     if (gameStarted && Input.GetKeyDown(KeyCode.Escape))
     {
         Jart.ToggleSongQuiet();
         if (!isPaused)
         {
             Pause();
         }
         else
         {
             Resume();
         }
     }
 }