I’ma total noob at this but i think you’re not telling the Script that’s on the player what nvidia is. I think you need to get it from the script that’s attached to the guiText. Something like:
function OnTriggerEnter(collisionInfo : Collider){
var nvdiaText : int = GameObject.Find("YourguiTextobjectname").GetComponent("nameofguitextscript").nvidia;
if(collisionInfo.gameObject.tag == "3dvision"){
nvidiaText.nvidia++;
Destroy(collisionInfo.gameObject);
}
}
That might be hopelessly wrong cos I’m a noob but give it a go eh?
Assuming the public property of the script you want changing is called ‘text’
And substitute ScriptType with the right value (depending on your language. I use boo, so its just ScriptType, but I think UnityScript might need typeof(ScriptType). Not sure)
Alternatively, you could bind the nvidia script with the player script, using the Unity inspector.