Script Communication in Unity using GetComponent
Ok, let’s talk about one of the most important and also more difficult concepts to grasp when it comes to coding games: script communication. In Unity, that can be done by using GetComponent. Transforms, colliders, rigidbodies and scripts are all components of game objects, and some of the most used as well.