You can put a PhysicsMaterial2D on your character's Rigidbody2D that has 0 friction so you don't get stuck to walls ^^