My script is
And I keep getting "MissingMethodException: Method not found: 'UnityEngine.GameObject.tag'." Error message, I cant figure out why. I swear I've gotten collision to work with this script in the past, what am I doing wrong here?
asked Dec 27 '10 at 01:47 AM
You're trying to treat collision.gameObject.name like it's a function, but it's not. You want to compare the name to a string:
answered Dec 27 '10 at 01:58 AM