Loading GUI texture on collision

Hey guys,

Really impressed with unity so far!!!

Im trying to load a gui texture to the screen, when my First Person Controller collides with the game object ‘beacon’.

The game object has the tag ‘beacon’ and the gui texture has the tag ‘map’.

This is the beaconcollect script

When i collide with the game object it successfully removes it, but the beaconcollect.collect++; variable doesnt seem to pass to the other script correctly? Or if it does the gui texture does not load?

Any ideas on this?

Problem solved, the code was fine. I forgot to assign a texture to my variable in the inspector.

Cheers!