- Home /
Moving selected units to different places
Hi Everyone,
I'm using Aron Granbergs AStar and have a basic SelectionManager working. I left click on a unit to select them and then I right click to set a target point and every selected unit moves there. If I click on anything else besides the unit it deselects them and they stop moving. In the AIPath script it only calculates their direction if selected which gets passed from SelectionManager. I've tried moving the direction code out of the if(selected) block but then selection won't matter since they will all move regardless.
What if I want to select each unit and set a specific move point for just that unit instead of all of them? And also have them continue moving there even if they are not selected?
Thanks for any help
Your answer
Follow this Question
Related Questions
Unity RayCast Selection 1 Answer
unit selection issue 0 Answers
Limit Diagonal Speed 2 Answers
DastardlyBanana(moving while jumping. 2 Answers
Rigidbody on a platform 2 Answers