mirror of https://github.com/axmolengine/axmol.git
fix SpriteEx
This commit is contained in:
parent
1e11f3b3da
commit
2b43c12b88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue