void OnCollisionEnter2D(Collision2D object1) { if(object1.gameObject.CompareTag("Pickup")) { Destroy(object1.gameObject); } }