When I start the game I get a null error because there is no unit selected when the game starts. So I’m using a workaround solution for that:
In the UnitActionSystemUI.CreateUnitActionButtons() i add this line after declaring the selected Unit
Unit selectedUnit = UnityActionSystem.Instance.GetSelectedUnit();
if (selectedUnit == null) return; // The new workaround
It seems like Codemonkey has a unit selected when the game runs and I don’t. What am I missing?