Skip to content

Instantly share code, notes, and snippets.

@AmmarTee
Created December 19, 2022 07:39
Show Gist options
  • Save AmmarTee/c12405d84da29de28d649de88f8373ed to your computer and use it in GitHub Desktop.
Save AmmarTee/c12405d84da29de28d649de88f8373ed to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class InGameMenu : MonoBehaviour
{
public void RestartGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}// Start is called before the first frame update
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment