timer.performWithDelay立即运行

时间:2017-05-26 22:03:31

标签: wordpress lua

简单问题:谁能告诉我为什么createBalloon函数会立即运行?

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

谢谢。

1 个答案:

答案 0 :(得分:1)

修正:

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