Ejemplo n.º 1
0
 public void Restart()
 {
     HScorePP           = PlayerPrefs.GetInt("HScore");
     HighScoreTxt1.text = HScorePP.ToString();
     Score         = 0;
     ScoreTxt.text = "0";
     if (Things [4].activeSelf)
     {
         Things [4].GetComponent <Animator> ().SetBool("restart", true);
     }
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        SplashScreen.SetActive(true);
        Invoke("CloseSplash", 3f);
        s                   = true;
        paused              = false;
        Score               = 0;
        VidAdCount          = 0;
        InterstitialAdCount = 0;
        Once1               = true;
        Once2               = true;
        HighScoreTxt1.text  = HScorePP.ToString();
        Player              = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController> ();
        UnlockSets();
        DiamondScore.text = PermScore.ToString();
        audioListener     = Camera.main.GetComponent <AudioListener> ();

        MusicSound();
    }