--取分钟
local lastmi = math.floor(dwSeconds/60)
--取秒
local lastsec = dwSeconds - lastmi * 60
--格式 00:00
local lasttext = "" .. string.format("%02d", lastmi) .. ":" .. string.format("%02d", lastsec)
--设置时间
clocktime:setString(lasttext)
--
if (self._dissmiss_timecount) then
local scheduler = CCDirector:getInstance():getScheduler()
scheduler:unscheduleScriptEntry(self._dissmiss_timecount);
self._dissmiss_timecount = nil
end
local function timerFun(dt)
yl.Print("num:"..(self._dissmiss_timecount_num or 0))
if self._dissmiss_timecount_num then
self._dissmiss_timecount_num = self._dissmiss_timecount_num - 1
local lastmi = math.floor(self._dissmiss_timecount_num/60)
local lastsec = self._dissmiss_timecount_num - lastmi * 60
local lasttext = "" .. string.format("%02d", lastmi) .. ":" ..