lua 实现sleep: 1.设置定时器timer 2.脚本中设置全局变量g_timer=0 3.函数中设置: g_timer=g_timer+1 if g_timer==n then n为timer设置的延迟*n的延迟 g_timer=0 end.
確定! 回上一頁