public void CreateSandbox() { Jart.clearJart(); gameStarted = true; MainMenuUI.SetActive(false); Cursor.visible = false; Resume(); SetCameraPosition.CenterCameraOnJartboard(); }
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(); }
public void ViewJart() { Jart.NewJart(); gameStarted = true; MainMenuUI.SetActive(false); Cursor.visible = false; Resume(); SetCameraPosition.CenterCameraOnJartboard(); }
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(); } } }