back to main menu button on score
This commit is contained in:
@@ -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