I have 5 variables. For each one, the script checks their status and must add more text to a GUIBox. How to do that?
Well, turn them into string and add them together to create a large string:
int a = scriptA.member;
int b = scriptB.member;
int c = scriptC.member;
int d = scriptD.member;
int e = scriptE.member;
string str = a.ToString()+" "+b.ToString()+" "+c.ToString()+ " " + d.ToString()+" "+ e.ToString();
void OnGUI(){
GUI.Box(rect,str);
}