Esempio n. 1
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Player" && stoneHolder.activeSelf == true)
     {
         runAgain.playerRun();
     }
 }
Esempio n. 2
0
    //===================================================

    public void retryGame()
    {
        scoreKeeper.score = 0.0f;

        setHighScore = false;

        scoreKeeper.haltScoring = false;

        scoreKeeper.hsReached = false;

        scoreKeeper.hsText.text = PlayerPrefs.GetFloat("highScore").ToString("f1");

        disableAllStones();

        playGame.pressPlay(true);

        startRun.playerRun();

        gameObject.SetActive(false);
    }