So in this lesson, we are writing two functions two check boundaries, and doing two separate calls to check the X and Z axis.
Would there be an issue creating a single function taking in both Vector2D variables and then checking all four values? I would assume if one of those turned out to be false (or multiple), you would just either subtract the DistanceToMove vector, or set NewLocation as Current Location, right?
Or would that mess something up? It just seems like a lot of extra functions and calls when it could be consolidated.