fix SpriteEx

This commit is contained in:
Naoyuki Totani 2015-02-12 00:13:52 +09:00
parent 1e11f3b3da
commit 2b43c12b88
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ function Sprite:playAnimationOnce(animation, args)
actions[#actions + 1] = cc.RemoveSelf:create()
end
if onComplete then
actions[#actions + 1] = cc.CallFunc:create(onComplete)
if args.onComplete then
actions[#actions + 1] = cc.CallFunc:create(args.onComplete)
end
local action