Skip to content
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.

1. Get TimerMgr

TimerMgr:Get()

2. Add Call Back

local Handle = TimerMgr:Get():On(function, ...):Time(t)

means call function(...) every t seconds.

3. Cancel Timer

Handle:Destroy()

4. autoly Destroy

local Handle = TimerMgr:Get():On(function, ...):Time(t):Num(n)

after n times call, Timer Manager will cancel this timer autoly.

Clone this wiki locally