Introducing the C# interface

What is an interface? You might be familiar with this word. Else go ahead and look it up in a dictionary. Right! Didn't help me much either.

Let's focus on some electronic devices as examples. For example, a game controller for a game console. The buttons, the shape, and so on, that's an interface. It's how you are allowed to interact with the game. How about a TV remote? That's an interface. It's how you are allowed to control the TV. How about a smartphone? A few buttons and a touch screen, perhaps some motion. That's an interface. That's how you are allowed to use the device.

How about the Unity game engine? Does it have an interface? Sure it does. It's right there on your computer screen. It's called the User Interface ...

Get Learning C# by Developing Games with Unity 3D 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.