-
Notifications
You must be signed in to change notification settings - Fork 98
Timer
asqbtcupid edited this page Feb 4, 2018
·
1 revision
The Tick function is defined in main.lua file.
The Tick function will be call once a frame.It's implemented by FTickableGameObject.
TimerMgr:Get()
local Handle = TimerMgr:Get():On(function, ...):Time(t)
means call function(...) every t seconds.
Handle:Destroy()
local Handle = TimerMgr:Get():On(function, ...):Time(t):Num(n)
after n times call, Timer Manager will cancel this timer autoly.