0
當托架被包括在該偵聽器,用法()
timer.performWithDelay(delay, listener [, iterations])
的
timer.performWithDelay()
未能延遲函數調用。
如果我嘗試在
timer.performWithDelay()
聲明函數,它提供了語法錯誤。
那麼如何使用timer.performWithDelay()中包含的函數傳遞參數/對象?
我的代碼:
local normal_remove_asteroid
normal_remove_asteroid = function (asteroid)
asteroid:removeSelf()
asteroid = nil
end
timer.performWithDelay(time, normal_remove_asteroid (asteroid))
郵政的實際代碼你正在使用。 – 2014-10-03 18:59:49
已更新。請檢查。 – Phoebus 2014-10-03 19:23:03