Okay,
I am making an educational math game. The questions are randomly generated, so you get different (sort of) gameplay each time.
var x : int = Random.Range(0,12);
var a : int = Random.Range(0,12);
function OnGUI()
{
GUI.Label (Rect (Screen.width/2, Screen.height/2, 100, 20), "...");
}
Now where I have ** GUI.Label (Rect (Screen.width/2, Screen.height/2, 100, 20), “…”);**
, specifically the “…”, I want it to display:
x * a = ?
So I thought I’d do it like this:
x + " * " + a + " = ?"
but this doesnt work either. Help?