The code I have is:
function OnTriggerEnter (other:Collider){
guiText.text = "You Win!";
print("You win!");
Application.Quit();
}
Oh and by the way, the text is attached to the object and the GUILayer is enabled. But the text does not show up, and the game does not end. The debug “You win!” I just put in to make sure it wasn’t a collision problem which it is not. If anyone happens to have an idea as to what it is that I’m having issues with, I would greatly appreciate some help in resolving it. Thanks in advance.