- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 278字
- 2021-04-02 18:34:10
A leap of faith
The first piece of code (the first lines of our script) looks like this:
function Update () { }
Click to place your cursor after the first curly bracket, and press the Enter key to make some space between the top and bottom curly braces. Press the Tab key to indent, to make your code look pretty, if the editor doesn't automatically do it for you. Then, type a single line of code so that your script looks like this:
function Update () { renderer.enabled = false; }
Note
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
You will notice that as you type each word in this line of code, entire drop-down lists pop open with a dizzying list of strange-looking options. This is called Code Hinting, and while it may seem annoying when you first encounter it, you'll be erecting a shrine to it by the time you have finished this book. Code hinting brings a programming language's entire dictionary to your fingertips, saving you the hassle of looking things up or misspelling special keywords.
A little asterisk ("star") appears next to your script's name whenever you have unsaved changes. Save your script by pressing Ctrl + S or Command + S on the keyboard, or by choosing File | Save from the menu. For the remainder of this book, we'll assume that you've saved any modifications that you've made to your scripts before trying them out.

- Advanced Machine Learning with Python
- Learning Real-time Processing with Spark Streaming
- Photoshop智能手機APP UI設計之道
- SQL語言從入門到精通
- Cassandra Design Patterns(Second Edition)
- 精通Linux(第2版)
- Spring Boot Cookbook
- Solr Cookbook(Third Edition)
- Oracle GoldenGate 12c Implementer's Guide
- Spring Boot實戰(zhàn)
- 創(chuàng)意UI:Photoshop玩轉APP設計
- Offer來了:Java面試核心知識點精講(框架篇)
- 計算機應用基礎(Windows 7+Office 2010)
- Python程序設計案例教程
- Swift編程實戰(zhàn):iOS應用開發(fā)實例及完整解決方案