How would I take an object that a collider collides with and store it in a variable or use it again.
function OnCollisionEnter(collided : Collision){
if(collided.gameObject.tag == "Weapon"){
PickUp();
}
}
PickUp() is a function and I would like to use the object that that collided and has the tag weapon in the parentheses of PickUp() and also debug its name.