Technical requirements
Before you start:
- Download or clone the GitHub repository at https://github.com/PacktPublishing/C-Design-Patterns-with-Unity-First-Edition.
- Open the Ch_05_Starter project folder in Unity Hub.
- In Assets | Scenes, double-click on SampleScene.
The starter project for this chapter is brutally sparse (we did a ton of work with visual components and Unity-specific features in the last chapter, so we’re not going to recreate all that work). I’ve only created a ground plane and a Crafting System
GameObject in the Hierarchy with an accompanying empty CraftingSystem.cs
script attached.
We’ll also be using some Unity and C# language features to take our code the extra mile. Don’t worry if you’re not familiar with these; I’ve included links for the basics, and I’ll explain how they apply to our use cases as we go: