LUA的延时调用功能
2014-11-16 15:06
267 查看
-- 延时 0.2 关闭
local
schedulerEntry = nil
local scheduler = cc.Director:getInstance():getScheduler()
local
function
removeLayer(time)
scheduler:unscheduleScriptEntry(schedulerEntry)
schedulerEntry =
nil
layer:removeFromParentAndCleanup(true)
end
schedulerEntry =
scheduler:scheduleScriptFunc(removeLayer,
0.2,
false)
local
schedulerEntry = nil
local scheduler = cc.Director:getInstance():getScheduler()
local
function
removeLayer(time)
scheduler:unscheduleScriptEntry(schedulerEntry)
schedulerEntry =
nil
layer:removeFromParentAndCleanup(true)
end
schedulerEntry =
scheduler:scheduleScriptFunc(removeLayer,
0.2,
false)
相关文章推荐
- IOS中如何调用LUA,以及LUA如何调用IOS中的功能
- 搭建带lua模块的nginx调用ImageMagick工具实现实时剪切缩放图片功能
- iOS中如何调用Lua,以及Lua如何调用iOS中的功能
- IOS中如何调用LUA,以及LUA如何调用IOS中的功能
- IOS中如何调用LUA,以及LUA如何调用IOS中的功能
- 利用Windows自带的Debug程序测试DOS的21#功能调用
- IE打印各功能调用
- 通过例子学习Lua(4) -- 函数的调用 (转)
- 转:WORD调用Excel的“文本到语音”功能,让WORD有声朗诵
- 功能完善的Java连接池调用实例
- VB.NET编程技巧——调用windows系统常用功能(原创文章)
- 网摘精灵教程:网摘精灵延时功能详解
- 部分未公开的Windows 2000核心功能调用
- 通过例子学习Lua(7) ---- Lua中调用C/C++函数 (转)
- 如何使用单元测试 测试WEB组件方法中的含有Session、Cookie等HttpContext功能调用的方法?
- Asp.Net中调用win32系统内核功能的实现方法
- vb.net下利用反射实现字符串调用窗体的功能
- c#下调用webservice在客户端利用datagrid本身功能分页
- 再asp.net中实现sharepoint里面调用outlook address book的功能
- 遇到困难:PB如何调用由C#创建组件的功能?