Unity方案
https://docs.unity3d.com/Packages/com.unity.entities@0.14/manual/index.html
文章
https://ajmmertens.medium.com/why-storing-state-machines-in-ecs-is-a-bad-idea-742de7a18e59
开源库
https://github.com/skypjack/EnTT
https://github.com/SanderMertens/flecs