Hey! I need some help with a script. I am using Javascript for this certain script but not sure if it needs to be in C# for it to be possible. If it is please let me know. Anyway I need it so when the user presses Return 5 times it will load the scene below. Thanks!
import UnityEngine.SceneManagement;
#pragma strict
function Start () {
}
function Update () {
if (Input.GetKeyDown (KeyCode.Return))
{
SceneManager.LoadScene(“02”);
}
}