In unity (the game engine) I have two scripts
CharacterSelect.js
CarCameraScript.js
I want to access the variable
selectedPlayer
FROM characterSelect.js IN CarCameraScript.js
That variable currently looks like this:
var selectedPlayer : int = 0;
From what i hear is it has something to do with getcomponent. Any help would be appreciated