I want you to create a script for Unity with the next features * It is a script called…
- User
I want you to create a script for Unity with the next features
- It is a script called UnitGroupPlacer, the goal of this script is to move a group of units from one point to another of a nav mesh map using a formation like a soldier squad
- As serialized fields the script has the properties of areaSize and numberofsoldiers
- The soldiers that are nav mesh agents surrounds a commander in a square formation
- Every time the commander moves, the soldiers try to maintain that formation around the comander
- If C is the commander and S is soldier the formation will look like this:
SSSS S S S S SSSS
And C in the middle of everything
*The class has a public method to tell it where to move the group *The script tries to maintain a formation with twelve soldiers startiong with those ones in the front line , but it also has a public method to add a new soldier and tell it where is his place
- Assistant
- User
I want you to create a script for Unity with the next features
- It is a script called UnitGroupPlacer, the goal of this script is to move a group of units from one point to another of a nav mesh map using a formation like a soldier squad
- As serialized fields the script has the properties of areaSize and numberofsoldiers
- The soldiers that are nav mesh agents surrounds a commander in a square formation
- Every time the commander moves, the soldiers try to maintain that formation around the comander
- If C is the commander and S is soldier the formation will look like this:
SSSS SXXS SXXS SSSS
And C in the middle of the space with the X
*The class has a public method to tell it where to move the group *The script tries to maintain a formation with twelve soldiers starting with those ones in the front line , but it also has a public method to add a new soldier and tell it where is his place
- Assistant