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...

Full description

Bibliographic Details
Main Author: Norton, Terry
Format: eBook
Language:English
Published: Birmingham Packt Publishing 2013
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Description
Summary: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
Physical Description:292 pages illustrations
ISBN:1849696594
1849696586
9781849696593