i have a problem and that is that i have a semicolon at the end and unity is giving me an error saying:
Assets/Scripts/scriptswitch.js(1,6): UCE0001: ‘;’ expected. Insert a semicolon at the end.
i am trying to switch scenes. this is my script(i have the correct spaces and stuff but unity is putting my script in a sentence. Sorry for the problem!):
using UnityEngine.SceneManagement;
function OnTriggerEnter (Col : Collider)
{
if(Col.tag == “Player”)
{
SceneManagement.LoadScene(“Test”);
}
}
PLZ HEEEELLLLLLPPPPP!!!
-thanks in advance