我正在尝试装扮删除功能,但收到此错误:
Attempt to index field '_target' (a number value)
代码片段:
for i = #badC1T, 1, -1 do
if badC1T[i] ~= nil then
transition.to( i, { time=500, alpha=0,} )
local function dellBadC1T()
badC1T[i]:removeSelf()
badC1T[i] = nil
end
timer.performWithDelay( 500, dellBadC1T, 1 )
end
end
知道如何解决这个问题吗?