Skip to content

Instantly share code, notes, and snippets.

@ones0318
Last active October 23, 2018 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ones0318/268b4a8b3d99c3b4d24a36d9793293b7 to your computer and use it in GitHub Desktop.
Save ones0318/268b4a8b3d99c3b4d24a36d9793293b7 to your computer and use it in GitHub Desktop.
using UnityEngine.SceneManagement;
// ...
void Update () {
if (Input.anyKeyDown){
SceneManager.LoadScene(sceneName, LoadSceneMode.Single);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment