Skip to Content
Learning C# by Developing Games with Unity - Seventh Edition
book

Learning C# by Developing Games with Unity - Seventh Edition

by Harrison Ferrone
November 2022
Beginner content levelBeginner
466 pages
9h 55m
English
Packt Publishing
Content preview from Learning C# by Developing Games with Unity - Seventh Edition

4

Control Flow and Collection Types

One of the central duties of a computer is to control what happens when predetermined conditions are met. When you click on a folder, you expect it to open; when you type on the keyboard, you expect the text to mirror your keystrokes. Writing C# code for applications or games is no different—they both need to behave in a certain way in one state, and in another when conditions change. In programming terms, this is called control flow, which is apt because it controls the flow of how code is executed in different scenarios.

In addition to working with control statements, we’ll be taking a hands-on look at collection data types. Collections are a category of types that allow multiple values, and groupings of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Learning C# by Developing Games with Unity 2021 - Sixth Edition

Harrison Ferrone

Publisher Resources

ISBN: 9781837636877Supplemental Content