US = UnityScript.
I am a newbie, and made a basic script.
function OnTriggerEnter()
{
Debug.log(“Hiya”);
}
You know, BASIC. And when I play, it doesn’t show an error, but it DOESN’T print in the output. Now I tried some different things, like.
var health = 10;
function OnTriggerEnter(){
health - 1;
Debug.log(“You lost some health dear soul.”);
}
The 2nd script, it made a variable named health, put it to 10, but it errors out and I can’t even play the game.
How come no scripts are working? yet imported ones DO work. I use MonoDevelop.