Question by
Etherington · Mar 05, 2016 at 03:58 PM ·
unity 5script.unityeditorprocedural
How to get an object and align it perfectly on another object with arrow button
I am building a game with dots and a user dot. By using the arrows, I want the user dot to move around on the other dots. How can i program (C#) to find out the exact numbers I need to do so?
Comment
store the dots in an array and when the arrow keys are pressed, add/subtract 1 or the row width depending on the key press (taking care not to exceed the bounds of the array).