I didn't link it to an object in the scene. Looking back over the notes I pulled up in trying to find a solution to the problem. I couldn't find anything telling me that I needed to attach the script to an object for the var to read from it.
Knowing this, I should now be able to use custom scripts throughout the game.
Once again, it was a case of the little details being the problem and not the big picture.
Comments
I didn't link it to an object in the scene. Looking back over the notes I pulled up in trying to find a solution to the problem. I couldn't find anything telling me that I needed to attach the script to an object for the var to read from it.
Knowing this, I should now be able to use custom scripts throughout the game.
Once again, it was a case of the little details being the problem and not the big picture.