var x : int;
function Start() {
x = Random.Range(1, 100);
}
The above script is attached to a child game object. How do I access the same x in a script meant to be attached to the parent?
var x : int;
function Start() {
x = Random.Range(1, 100);
}
The above script is attached to a child game object. How do I access the same x in a script meant to be attached to the parent?