My script is
function OnCollisionEnter(collision:Collision) {
if(collision.gameObject.name("Station")){
Debug.Log("hit!");
}
}
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?