The following chapter is hands-on, so you will need to have a basic understanding of Unity and C#.
We will be using the following Unity-specific engine and C# language concepts:
- Statics
- Generics
If unfamiliar with these concepts, please review Chapter 3, A Short Primer to Programming in Unity.
The code files of this chapter can be found on GitHub, at https://github.com/PacktPublishing/Game-Development-Patterns-with-Unity-2021-Second-Edition/tree/main/Assets/Chapters/Chapter16.
Check out the following video to see the code in action: https://bit.ly/36AKWli
Static is a keyword modifier. A method declared as static in a class can be called without instantiating an object.