I would just make a script called GameData and put it on the camera.
Then any script that needs it can access it:
void Start()
{
playerName = Camera.main.getComponent().playerName;
}
↧