How to retrieve all player units?
Should I tag them with “player unit” for example, and then use GameObject.FindGameObjectsWithTag.
Or should I add a player unit to a static list in C# each time a new unit is created, so I won’t have to do additional work then to get all player units when needed.
Could you guys give me opinions on both please?
The first one is simpler and the second one might be faster.
Thanks