First double check that the object's tag is spelled "pickup", I think this is case-sensitive.
If a typo isn't the error, double check that your script is actually attached to a GameObject inside the scene.
If both of these checks are verified, then I'm not sure. You'd need to post more of your code or where/how it's being used.
↧