September 2013
Beginner
292 pages
6h 19m
English
Let's look at accessing a variable in LearningScript from inside LearningScript.
LearningScript as shown in the following figure:
Here are the outputs in the Console:

An analysis of the code shown in the previous code screenshot is as follows:
Line 6: string myString = "Access the variable ";
myString is the variable that will be accessedprivate by default, yet it can still be accessedLine 17: Debug.Log(myString ...