So In my game I want it so it outputs “Your current time is: Insert time here”.
However when I actually put this into practice It either just outputs “Your current time is: Your current time is” or it just outputs the number without any text.
Code:
void OnGUI() {
CurrentTime = GUI.TextArea(new Rect(PosX,PosY,SizeX,SizeY), "Current time: " + CurrentTime);
CurrentHighScore = GUI.TextArea(new Rect(0,20,SizeX,SizeY), "Current highscore: " + CurrentHighScore);
}
void Convert(){
CurrentTime = System.Convert.ToString(timer);
CurrentHighScore = System.Convert.ToString(highscore);
}
}