【ulua入门】ulua中的update函数Timer.New()

xiaoxiao2021-02-28  112

代码:

--有三个参数,第一位委托,第二个为执行的频率,第三个为执行的次数,-1为无限 this.updatFunc = Timer.New(function() log("执行间隔为0.2s") end, 0.2, -1) --开始执行这个函数 this.updatFunc:Start()

转载请注明原文地址: https://www.6miu.com/read-60646.html

最新回复(0)