2017-05-26 109 views
0

簡單的問題:誰能告訴我爲什麼createBalloon函數立即運行?timer.performWithDelay立即運行

makeBalloonfromRainbow = timer.performWithDelay(5000, createBalloon(x, y), 1) 

謝謝。

回答

1

固定:

makeBalloonfromRainbow = timer.performWithDelay(5000, function() createBalloon(x, y) end, 1)