Beispiel #1
0
 public void MainButtonClicked()
 {
     SoundManager.instance.PlaySingle(clickSound);
     //load main menu
     SceneManager.LoadScene(0);
     showPanels.HideFinishPanel();
     showPanels.HideGameOverPanel();
     showPanels.HidePauseMenu();
     showPanels.ShowBG();
     showPanels.ShowMenuPanel();
     inMainMenu = true;
     SoundManager.instance.PlayMusic(mainMenuMusic);
     GameManager.instance.ResumeTime();
 }