예제 #1
0
    private void OnGUI()
    {
        GUI.TextField(
            new Rect(0, 0, Screen.width / 2f, 90),
            "Timer:\n" +
            "\n  Timout: " + timer.timeout +
            "\n  Status: " + timer.Status().ToString() +
            "\n  Time: " + timer.CheckTime()
            );

        GUI.TextField(
            new Rect(Screen.width / 2f, 0, Screen.width / 2f, 90),
            "StopWatch:" +
            "\n  Status: " + watch.Status().ToString() +
            "\n  Time: " + watch.CheckTime()
            );
    }