Technical requirements
To get started:
- Download or clone the GitHub repository at https://github.com/PacktPublishing/C-Design-Patterns-with-Unity-First-Edition.
- Open the Ch_18_Starter project folder in Unity Hub.
- In Assets | Scenes, double-click on SampleScene.
The starter project for this chapter is a completely blank canvas that we’re going to diligently (and randomly) draw on with generated terrain tiles to provide our future players with an arena to explore. Any 2D or 3D tactics games you’ve played in the past (I’m looking at you, Final Fantasy Tactics) will be our guiding light. Since this example is heavily dependent on procedurally creating our visuals, you’ll have to be a little patient with the UI until we get things running in the scene.
As for the scripts:
Client.cs
is set up to generate our terrain based on a given number of rows, columns, and parent objects we want all the terrain tiles to belong...