Seems like you are using pathfinding to move to the door.
Isn't there an on arrived trigger for pathfinding?
You could also use an on collision with door trigger, or is overlapping.
Or you could use a distance check to see if the player is close enough to the door.
so on left click - find path,
on path found - move
on colision with door - switch layout