- Unity 4.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 171字
- 2025-03-31 04:01:42
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The audio.PlayOneShot
command is perfect for collision sound effects."
A block of code is set as follows:
for(var i:int=0; i<totalRobots; i++) { var aRobotParts:List.<String> = new List.<String>(); aRobotParts.Add("Head"); aRobotParts.Add("Arm"); aRobotParts.Add("Leg"); }
When we wish to draw indicate that a line of code needs to be added or edited, the relevant lines or items are set in bold:
function Awake() { startTime = Time.time + 5.0; }
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "When you click on the Apply button, Unity creates its set of raster images based on the font that you're importing".