Mulitple touch areas on a gameobject
Hey,
in my current 2D project I draw lines starting from game object A to game object B in order to have a line which connects those visually and is then snapped to both points, therefore it just consists of a starting and an ending point.
Now what I want to do, is being able to edit this line by clicking either the starting or the ending point and then "unsnap" it and draw/drag it somewhere else. For this I was wondering what would be the best approach. Is it somehow possible to define a touch area at the starting point and another touch area at the other side?
The only other approach I can think of is checking the mouse input at game object A and B but I was wondering if it's somehow manageable within the line class and not elsewhere.
Comment