Example #1
0
    void RestartGame()
    {
        SceneManager.LoadScene("Scene1");
        TouchReaction t = new TouchReaction();

        t.resetScore();
    }
Example #2
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if ((collision.gameObject.CompareTag("Floor")))
     {
         //GameOverAudioSource.Play();
         TouchReaction t = new TouchReaction();
         t.resetScore();
         SceneManager.LoadScene("GameOver");
         //DelayedLoad();
     }
 }