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: "Set the fps variable to the Rounded value of frames."

A block of code is set as follows:

// Matches
private var haveMatches : boolean = false;
var matchGUIprefab : GUITexture;

Some code lines are long, and end up running onto new linesmake sure that you do not do this in your code. Remember that code lines are terminated by a semi-colon ; so wherever possible, keep code on a single line. In the example below, space restraints forces this to be displayed on two lines but in your script editor, you should not place ...

Get Unity 3.x Game Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.