I’m interested if is there posible to anderstand which scene is playing now. I want to load (CurrentScene+1) when I press button.
I used EditorApplication.currentScene, but it gives me error:Assets/kodebi/gui.js(30,31): BCE0005: Unknown identifier: ‘EditorApplication’.
try this:
//...
var curLevel = Application.loadedLevel
Application.LoadLevel(curLevel ++);
//...
I find it :). if anyone is interested it’s so:
Application.LoadLevel( (Application.loadedLevel)+1);
Application.loadedLevel-gives las loaded level number.
hah
you writed first. thx peter G,