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...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing
2013.
|
Colección: | EBSCO Academic eBook Collection Complete.
|
Acceso en línea: | Conectar con la versión electrónica |
Ver en Universidad de Navarra: | https://innopac.unav.es/record=b35599583*spi |
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: | 292 p. : il |
Formato: | Forma de acceso: World Wide Web. |
Bibliografía: | Incluye referencias bibliográficas e índice. |
ISBN: | 9781849696593 9781849696586 |