Moveable Area on Maze


i make a pac-man clone. but i need a moveable area for pacman and ghosts. It can be both navmesh or node-based system. the red ones are my corners. I tried anything but i can’t find a solution.

Just curious, do you have any Javascript experience? :) I'm asking because Javascript + Web + Browser dev tools is the perfect environment for quickly testing ideas and methods, exploring different algorithms, etc. without having to worry about strict syntax (C#) and frameworks (Unity engine).

A few question to get you started because you need to make sure that you know the basics in Unity. (1) If you have two positions (vector2), do you know how to make an object move from one position to the other at a constant speed and check if it has reached the destination?

yes i know how to move character from one position to another but i don't know destination thing