Hello.
What i want to do is make a GUI text appear when the player
approches a gameobject and dissaspear when the player go away.
I have a problem with a script that i have copied on another
post:
function OnTriggerEnter (other : Collider) {
if (other.CompareTag ("Player")) {
SendMessageUpwards("SetTheGUI");
}
}
function OnTriggerExit (other : Collider) {
if (other.CompareTag ("Player")) {
SendMessageUpwards("UnSetGUI");
}
}
But when i start the game and approches the sphere,It says: Sendmessage SetheGUI has no receivers!
Thanks.