Summary

First, we covered how to write a C# statement, especially the semicolon for terminating a statement. All the component properties shown in the Inspector panel are member variables in the component's class. Member variables can be shown in the Inspector panel or accessed by other scripts when the variable is declared public. The type of data that a variable can store is specified when it's declared. Finally, you learned that variable scope determines where it is allowed to be used.

Now that you've learned about variables, you're ready to learn the details of the C# methods that will use the variables we create, which is the topic of the next chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset