Get public variable from other gameobject unity. The tutor assigns two scripts to an object in the scene.