Thanks for the reply. Instead of structs, I use empty GameObjects for each position in the formation. This way, I could do more with it like access its Transform component or attaching different components to it like Colliders, etc. Anyways, really cool work on your part.
I've read your blog that explains how you made your earlier football game. Very well explained! I learnt a lot from it for my game. Thank you! I just have a question regarding what you refer to as the 'formation position or rectangle' which decides whether the team is attacking or defending. Could you please just make a few more remarks here about how would one could code something like this for their game? I'm not understanding how do I apply this biased position for all the players in the field using this focus rectangle. I'm letting the difference between the player's default position and his ideal position given by the Hungarian algo control how the player should move. Kindly, elaborate a little on this subject.
Best,