© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
C. HardmanGame Programming with Unity and C#https://doi.org/10.1007/978-1-4842-9720-9_9

9. Working with Objects

Casey Hardman1  
(1)
West Palm Beach, FL, USA
 

Remember when we talked about how programming is largely concerned with organizing and manipulating data? We interact with data as objects. A single piece of data is called an object, and an object might have other objects stored inside it – as we described in our previous examples, a data type resembling a “Person” might have a first name, last name, date of birth, and so on. We’ve already dealt with some basic objects: bool, int, float, and string are all objects as well. Now let’s learn about creating ...

Get Game Programming with Unity and C#: A Complete Beginner’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.