Cargando…

Learning C# by developing games with Unity 2020 : an enjoyable and intuitive approach to getting started with C# programming and Unity /

This fifth edition of the popular C# guide helps you learn the building blocks of C# language, right from variables to classes and exception handling. After getting to grips with the basics of C# programming, it takes you through the world of Unity game development and how you can apply C# knowledge...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Ferrone, Harrison (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2020.
Edición:Fifth edition.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedication
  • About Packt
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Getting to Know Your Environment
  • Technical requirements
  • Getting started with Unity 2020
  • Using macOS
  • Creating a new project
  • Navigating the editor
  • Using C# with Unity
  • Working with C# scripts
  • Introducing the Visual Studio editor
  • Time for action - opening a C# file
  • Beware of naming mismatches
  • Syncing C# files
  • Exploring the documentation
  • Accessing Unity's documentation
  • Time for action - opening the Reference Manual
  • Time for action - using the Scripting Reference
  • Locating C# resources
  • Time for action - looking up a C# class
  • Summary
  • Pop quiz
  • dealing with scripts
  • Chapter 2: The Building Blocks of Programming
  • Defining variables
  • Names are important
  • Variables act as placeholders
  • Time for action
  • creating a variable
  • Time for action
  • changing a variable's value
  • Understanding methods
  • Methods drive actions
  • Methods are placeholders too
  • Time for action
  • creating a simple method
  • Introducing classes
  • A common Unity class
  • Classes are blueprints
  • Working with comments
  • Practical backslashes
  • Multi-line comments
  • Time for action
  • adding comments
  • Putting the building blocks together
  • Scripts become components
  • A helping hand from MonoBehavior
  • Hero's trial
  • MonoBehavior in the Scripting API
  • Communication among classes
  • Summary
  • Pop quiz
  • C# building blocks
  • Chapter 3: Diving into Variables, Types, and Methods
  • Writing proper C#
  • Debugging your code
  • Declaring variables
  • Type and value declarations
  • Type-only declarations
  • Using access modifiers
  • Choosing a security level
  • Time for action - making a variable private
  • Working with types
  • Common built-in types
  • Time for action
  • playing with different types
  • Time for action
  • creating interpolated strings
  • Type conversions
  • Inferred declarations
  • Custom types
  • Types roundup
  • Naming variables
  • Best practices
  • Understanding variable scope
  • Introducing operators
  • Arithmetic and assignments
  • Time for action
  • executing incorrect type operations
  • Defining methods
  • Basic syntax
  • Modifiers and parameters
  • Time for action
  • defining a simple method
  • Naming conventions
  • Methods are logic detours
  • Specifying parameters
  • Time for action
  • adding method parameters
  • Specifying return values
  • Time for action
  • adding a return type
  • Using return values
  • Time for action
  • capturing return values
  • Hero's trial
  • methods as arguments
  • Dissecting common Unity methods
  • The Start method
  • The Update method
  • Summary
  • Pop quiz
  • variables and methods
  • Chapter 4: Control Flow and Collection Types
  • Selection statements
  • The if-else statement
  • Basic syntax
  • Time for action - thieving prospects
  • Using the NOT operator
  • Nesting statements