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