Unity 3.x Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

What is code?

Code is just a series of instructions that you give to Unity to make it do stuff. We write lines (sentences) of code describing what we want to accomplish; these lines are called statements . Unity reads these statements and carries out our instructions. In Unity, you usually take a set of instructions and "stick" it to a GameObject. From now on, we'll use Unity's terminology Script to describe a collection of code statements.