#pragma strict
var newScene : String;
function Update()
{
if (Input.GetKey(KeyCode.E))
{
Application.LoadLevel(newScene);
}
}
when I start the game unity3d tells me "All compiler errors have to be fixed before entering playmode". I checked the console. I get this writing "CambiaScenaE.js (3,5): BCE0089: Type 'CambiaScenaE' already has a definition for 'newScene'." how can i solve? this code has always worked but suddenly it has stopped working, why?
↧