Hello there, sorry if this is the wrong place to ask this.
Basically, i’m making a prototype for a point and click game, so atm it’s very basic. I have three cubes each off them related to an individual GUIText in the HUD. when i Click on each of them I want the GUIText related to disappear. However, I only need to click on one box and all three GUITexts in the HUD disappear instead of the one it’s related to.
I just can’t for the life of me figure out why
Any help or advice would be appreciated,
Below is the Script i’m using:
var cluetext : GUIText;
function Update ()
{
RemoveText();
}
function RemoveText ()
{
if (Input.GetMouseButtonDown(0))
cluetext.guiText.enabled = false;
}
Thanks.