Beispiel #1
0
    public void Pausegame()
    {
        sound.ButtonSound();
        sound.PauseMusic();

        Time.timeScale = 0f; // unity saját idő mérője 0-megál, 1 normál
        pausemenu.SetActive(true);
    }
Beispiel #2
0
    public void Playgame() // betöltjük a következő scean-t
    {
        sound.ButtonSound();
        Application.LoadLevel(playgamelevel);


        //  sound.MainTheme();
    }
Beispiel #3
0
    public void SaveScore()
    {
        sound.ButtonSound();
        if (playername.text != "" && playername != null)


        {
            Score_save._instance.SaveHighScore(playername.text, score.scorecount);
            playername.text  = "";
            score.scorecount = 0;
            playername.gameObject.SetActive(false);
            savebutton.gameObject.SetActive(false);
        }
    }
 public void getleaderboard()
 {
     sound.ButtonSound();
     highscore = Score_save._instance.GetHighScore();
 }
Beispiel #5
0
 public void Playgame()
 {
     sound.ButtonSound();
     Application.LoadLevel(playgamelevel);
 }
Beispiel #6
0
    public void backtomain()
    {
        sound.ButtonSound();

        Application.LoadLevel("main menu");
    }