Im quite new to game development, I designed some elements and I made a grid building system.
What is my game about?
I build a airport and there the cars should follow the taxi lines. The user can build the taxi lines in many ways. I have made for every direction a tile/block.
What I wanna do:
I want so set for each tile/block the path. Because the cars should only drive on the taxi line and not nearby. So when the user selected a car and then clicks on somewhere in the map. Then the car should find the nearest path to it over the tax lines. I do not think that a collider is the right solution in this situation.
What my problem is:
Idk how I should do it.
I hope anybody can provide some code example and the right solution.
BTW: I prefer scriptable objects.