Greetings everyone.
This should be a fairly simple question, I've tried my darndest to get this working but must be missing something simple.
What I am trying to set up is a Coloured Button called "Buy 10 Gold". When it is clicked it adds it to a label/prefab in the top right corner. Every time "Buy 10 Gold" is clicked it should increase the displayed Gold. At the moment it displays "0" in the _gold.text box in the top right.
I have created a Panel called MarketPlace. Inside that Panel I have a Button called "Buy 10 Gold) and a prefab/label called FloatingText). I have added an event trigger to "Buy 10 Gold" and pointed it to Panel: MarketPlace which has the c# MarketPlace.cs attached to it. The Button: Buy 10 Gold increments the var int Gold every time it is clicked but does not update it in the top right.
Basically all I'm looking for is - click a button, increment a gold label/prefab in the top right corner.
Thanks heaps for your help.
Kind regards
A complete noob

Below is the code I've been struggling with:
public class MarketPlace : MonoBehaviour {
public int Gold = 0;
private UILabel _gold;
void Start () {
_gold = GetComponent<UILabel> ();
_gold.text = ("" + Gold);
}
public virtual void Gold10 () {
Gold = Gold +=10;
}
}