void OnGUI() { clock = new HMS(0, 0, Time.time - starttime); timetextstyle.fontSize = Screen.width / 100; GUI.Label(new Rect(Screen.width, 0f, 0f, 0f), "time: " + clock.ToString() /*,string.Format("time: {0}:{1:00}:{2:00}", clock.hours, clock.minutes, clock.seconds)*/, timetextstyle); }
public void HMS_Parse_ToString_true() { HMS h = new HMS(2, 56, 45.4); Assert.IsTrue(h == HMS.Parse(h.ToString())); }