I am working on a game in Unity 2018.2.5f1. I have it setup where in a level you can collect coins placed around the level. I also have GUI label setup to count the coins you have collected. Then, in my main menu I have setup, There is another GUI label that is going to show how many coins you have collected throughout you playing. The problem is, I have been searching for a long time on how I can take the Level coin counter GUI label and add it to the main menu Coin counter GUI label. Below is the C# code for this (It really is not a lot of code).
public GUIStyle COINStyle;
private void OnGUI()
{
GUI.Label(new Rect(10, 10, 100, 20), "Coins : " + coins, COINStyle);
}