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.