Timer timer delay loop

Resource Name: TimerService

Use as follows:

And wherein MyTimer TimerService class tools, the use of encapsulated SuperInvokeTag


        MyTimerService.Inst.CreateTimer(2f,()=> {
            Debug.LogError("延迟两秒");
        });

        //MyTimer my = MyTimerService.Inst.CreateRepeatTimer(2f,()=> {
        //    Debug.LogError("循环");
        //});
        //my.Stop();

        JacobGames.SuperInvoke.SuperInvokeTag tag = MyTimerService.Inst.CreateDelayTimerWithHandler(2f,()=> {
            Debug.LogError("返回句柄");
        });


        JacobGames.SuperInvoke.SuperInvoke.Kill(tag);
Published 62 original articles · won praise 5 · Views 3903

Guess you like

Origin blog.csdn.net/qq_42194657/article/details/103855125