In this section, our goal is to understand how Unity scripts integrate as components on top of GameObjects. If you recall from Chapter 1, Introducing Game Audio in Unity, all the functionality built into Unity is in the form of components and components are just scripts and code. Take a look at the following diagram, which should demonstrate the basic concepts of a GameObject and Component:
As the diagram shows, all objects are derived from GameObject, which means, they all essentially share the same base level object. If you look ...