The code files for this chapter can be found on GitHub: https://github.com/PacktPublishing/Game-Development-Patterns-with-Unity-2021-Second-Edition/tree/main/Assets/Chapters/Chapter09.
Check out the following video to see the code in action: https://bit.ly/3xDlBDa.