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_06_Starter project folder in Unity Hub.
- In Assets | Scenes, double-click on SampleScene.
The project for this chapter mimics a generic assembly system – in this case, for support characters that can be deployed with you on playable missions. The main scene has a ground platform (ambiance is important) and a UI panel on the right-hand side where you can click Create to build whatever support character you want. When a support character is built, each of its component parts will be printed out in the UI panel as a blueprint.
As for the scripts:
Client.cs
has aText
field to print out the blueprint components.ModelData.cs
is a utility script for creatingScriptableObject
components for our support allies.- The Resources folder has six pre-made
ScriptableObject...