出现以下错误
LUA ERROR: :151: attempt to index local ‘self’ (a number value)
function GamePlay:ctor()
local timer = scheduler.scheduleGlobal(self.CountingTime, 1)
end
function GamePlay:CountingTime()
counttime = counttime + 1
if counttime == 3 then
self:enddrag()
end
end
function GamePlay:enddrag()
print(“end”)
end
请问那里出现问题?