Exemplo n.º 1
0
 public void BackToMenu()
 {
     level          = 0;
     totalGameOvers = 0;
     totalTime      = 0;
     timer.StopTimer();
     MagIcon.SetActive(false);
     CrioIcon.SetActive(false);
     BioIcon.SetActive(false);
     MusicPlayer.Stop();
     MusicPlayer.clip = DefaultSong;
     MusicPlayer.Play();
     timer.gameObject.SetActive(false);
     SceneManager.LoadScene("Menu_Principal");
 }
Exemplo n.º 2
0
    public void InitGame()
    {
        Time.timeScale = 1f;
        //Debug.Log("This doesnt make any sense at all");
        MagIcon.SetActive(false);
        CrioIcon.SetActive(false);
        BioIcon.SetActive(false);

        MusicPlayer.Stop();
        MusicPlayer.clip = DefaultSong;
        MusicPlayer.Play();

        CompletedPuzzles = 0;
        levelTime        = 0;
        timer.StartTimer(testTimeLimits[level - 1]);
    }