Learning C♯ by developing games with Unity 3D beginner's guide : learn the fundamentals of C♯ to create scripts for your GameObjects /
Chapter 2: Introducing the Building Blocks for Unity Scripts; Using the term method instead of function; Understanding what a variable does in a script; Naming a variable; A variable name is just a substitute for a value; Time for action - creating a variable and seeing how it works; Time for action...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
©2013.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Sumario: | Chapter 2: Introducing the Building Blocks for Unity Scripts; Using the term method instead of function; Understanding what a variable does in a script; Naming a variable; A variable name is just a substitute for a value; Time for action - creating a variable and seeing how it works; Time for action - changing the number 9 to a different number; Using a method in a script; What is a method?; Time for action - learning how a method works; What's in this script file?; Method names are substitutes too; Introducing the class; By using a little Unity magic, a script becomes a Component. This book uses the learning-by-example approach. It takes simple examples from games to introduce all the main concepts of programming in an easy-to-digest and immediately recognizable way. This book is for the total beginner to any type of programming, focusing on the writing of C♯ code and scripts only. There are many parts that make up the Unity game engine. It is assumed that the reader already knows their way around Unity's user interface. The code editor used in this book is the MonoDevelop editor supplied by Unity. |
---|---|
Descripción Física: | 1 online resource (292 pages) : illustrations |
Bibliografía: | Includes bibliographical references and index. |
ISBN: | 9781849696593 1849696594 1849696586 9781849696586 |