您的位置:首页 > 编程语言 > Lua

Lua封装延时执行函数

2015-12-30 23:07 1381 查看
延时执行函数

function delayTimeGuideEvent( target, func, times )
-- 延迟时间执行函数
local delaytime = 1
if times then delaytime = times end
getRoot(target):runAction(CCSequence:createWithTwoActions(CCDelayTime:create(delaytime), CCCallFunc:create(func)))
end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  函数 Lua