You have to make the box collisions bigger and add the following code so that when the player starts playing the mouse cursor disappears, also when the idle animation is on the sword hides and when you walk the sword comes out, I don't know if It is an artistic decision but I clarify it just in case, I hope it has helped you!! ^^
void Start() { //Set Cursor to not be visible Cursor.visible = false; }