示例#1
0
    public static TimerObject SetGUITimer(Callback cb)
    {
        GameObject  t     = new GameObject("TimerObject GUI Timer");
        TimerObject timer = t.AddComponent <TimerObject>();

        timer.SetGUITimer(cb);
        return(timer);
    }