I have one Javascript named java1.js
public var dog : int = 0;
java1.js is attached to the game object main camera.
Then the value of dog is changed by a controller input somewhere between 0-100.
Now I have a second Javascript named java2.js
How do I access the changing value of dog from java1.js in java2.js
So I can make a new variable cat = dog
?