Posted October 10, 2023 by Hunter_of_Dune
There was a Unity Open Project a few years ago. I was too late to contribute, but everything is open source. I have spent a good deal of time looking trough code and documentation on the project. The information has been very helpful to my learning.
https://github.com/UnityTechnologies/open-project-1
To save time, I decided to use their nicely documented State Machine. This is used several times in the project.
Battles, units, squads and army's all need states.