Ok, so I'm making a game in which you click the trees, then they give you wood. I need to make an object to show how much wood the player has.
In the tree object, I have these scripts for the Global Variable "Wood":
global.Wood = 0;
//When Tree clicked, add +1 wood and disappear.