private void OnTriggerEnter2D(Collider2D collider) { IPickable _item = collider.GetComponent <IPickable>(); _item?.OnPickup(); }