unity : create clickable zones

1.1k Views Asked by At

I would like to know how to create clickable zones in unity using c#. I am working on a managing type game, and I lack experience when it comes to code.

My idea is to move a character (rather a token) on a map to interact with the different tiles. I already managed the simple part of getting the token to follow my clicks. Now, I would like to constrain my token to move only in specific zones, like the center of each district of the map.

It is to be able to assign consequences to the moves my character will do (for instance moving will cost energy and take some time), but I'll manage it later, it's just to explain what I have in mind.

Any help will be appreciated, Thanks for reading :) Gregoire C.

0

There are 0 best solutions below