UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"restart game"
public class ButtonRestart : MonoBehaviour { // Restart Game level public void restartCurrentScene () { int scene = SceneManager.GetActiveScene().buildIndex; SceneManager.LoadScene(scene, LoadSceneMode.Single); } }