The print statement and the GUI just show the time to be 0. It does not increase. This function works in another project I started to test it. What could be causing Time.time to return 0?
here is my function:
function OnGUI () {
var guiTime = Time.time;
print(Time.time);
var minute = guiTime / 60;
var second = guiTime % 60;
var fraction1 = (guiTime * 100) % 100;
textTime = String.Format ("{0:00}:{1:00}:{2:000}", minute, second, fraction1);
GUI.Box (Rect (20,15,140,50), "Current Time");
GUI.Label (Rect (25, 35, 100, 30), textTime); //changed variable name to textTime -->text is not a good variable name since it has other use already
}