We have defined a default selected unit on the UnitActionSystem
but there is a race condition (at least on my machine) where the GridSystemVisual.Start()
runs before the Unit.Start()
. This then starts the game with my default unit - which is not at position 0,0 - to be displayed incorrectly because the Unit has not retrieved its grid position yet and returns the default 0,0. Once I have selected a different unit, everything is fine. It’s just visually not displaying the correct things at start.
To solve it I have added Unit to the script execution order