We will also be using the following specific Unity engine API features:
- Stack
- ScriptableObjects
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 the following link: https://github.com/PacktPublishing/Game-Development-Patterns-with-Unity-2021-Second-Edition/tree/main/Assets/Chapters/Chapter13.
A Stack is a linear data structure with two primary operations: Push, which adds an element on top of the stack, and Pop, which removes the most recent element from the top.