Well im trying to write a very simple script where when the player colloids with a pickup, the pickup object is distroyed and the player is awarded 100 points. This is what I have:
As fell said, could you please elaborate on what your problem is?
As far as I can tell that code should work as long as the condition is being met (Print out to the log inside the condition to make sure the condition is met, if not, print out the name of the gameObject that is being collided with, which should help you figure out what’s going on.
Alternatively if your problem is that the the pickup object isn’t being destroyed then keep in mind that the game object won’t be destroyed until sometime after the Update calls so don’t expect it to just disappear instantly.