Get the Code :
Best Unity 2D Book :

In the next 2 videos I’ll cover how to lock Ms. Pac-Man perfectly inside of the maze as she moves around. We will do this not through colliders, but instead by using pivot points, which will make the movement very clean and also resource light. We’ll cover how to Setup Pivot Points, Putting GameObjects in an Array, Selecting GameObjects in Code, Cycling through GameObjects in Empties, Moving Ms. Pac-Man, Animating Ms. Pac-Man and much more.

Thank you to Patreon supporters like the following for helping me make this video