https://bataylan.dev/netcode-state-machine/unity/
Netcode State Machine