How to Pass Variables Between Scripts in C#

In this article, you are going to learn how to pass variables between scripts in C# and in Unity. This is highly common and extremely important so it's a fantastic idea to get a solid grasp of this concept as early on as possible in your programming career. In this example, what we want to do is drop a ball onto a paddle, and increment the score text in the upper-right corner of the screen by 100 points every time the ball bounces. Easy enough, right? Let's take a look at the code and how we can do [...]