Last active
October 23, 2018 15:59
-
-
Save ones0318/268b4a8b3d99c3b4d24a36d9793293b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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