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_04_Starter project folder in Unity Hub.
- In Assets | Scenes, double-click on SampleScene.
The project for this chapter has a character standing at attention right in front of the camera, ready to be modified based on items we’ll create and use, and a simple UI display with a Stats panel for the character’s health and boost multiplier, as well as an Inventory panel for showing our future items!
As for the scripts:
Client.cs
just holds a reference to an ItemButton prefab we’ll be using to programmatically fill out the UI panel:- The Inventory panel has the
Client.cs
script attached to it, which has a connection to theItemButton.cs
script we’ve attached to the Button prefab (in the Prefabs folder).
- The Inventory panel has the
ItemButton...