Our script has variables for holding data, and our script has methods to allow tasks to be performed. I now want to introduce the concept of communicating with other GameObjects and the components they contain. Communication between one component's GameObject and another component's GameObject using dot syntax is a vital part of scripting. It's what makes interaction possible. We need to communicate with other components or GameObjects to be able to use the variables and methods in other components.
Components that communicate using dot syntax
What's with the dots?
When you look at code written by others, you'll see words with periods separating them. What the heck is that? It looks complicated...