I'm trying to send a message from a coin prefab to a score gui to add 1 to the score everytime my player collides with a coin. Here's the coin script:
Here's the score gui's script:
Does anyone know what's wrong here?
asked Oct 09 '10 at 07:32 PM
The idea looks sound.
Use the debugger or put a Debug.Log line at the top of the OnTrigger function to make sure it is getting called. If it is, then the test for player tag is failing. If it isn't, then the problem is with getting the trigger to fire.
answered Oct 09 '10 at 08:25 PM