So I am sure this is a simple fix, but I am trying to set a string to a numerous amount of values, and text. Does anyone know how to format this correctly?
NotifierText = ("Slain " + (clearMinesDone.ToString) + " / " + (clearMinesTotal.ToString) + " Zombies in the Mine!");
NotifierText.text = “Slain " +
clearMinesDone.ToString() +
" / " + clearMinesTotal.ToString() +
" Zombies in the Mine!”;
More sofisticated way would be to use string.Format:
NotifierText.text = string.Format( "Slain {1} / {2} Zombies in the Mine!", clearMinesDone.ToString(), clearMinesTotal.ToString() );