back to main menu button on score
This commit is contained in:
1 parent
555a86cfca
commit
b68a50fc58
2 files changed
+279
No files matched your search
@@ -2,6 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ScoreboardManager : MonoBehaviour
|
||||
@@ -118,4 +119,12 @@ public class ScoreboardManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void RestartGame()
|
||||
{
|
||||
GameObject gm = GameObject.Find("GameManager");
|
||||
Destroy(gm);
|
||||
|
||||
SceneManager.LoadScene("menu");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user