Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clearSprite(self, event)
- if event.phase == 'end' then
- local group = self.parent
- self:removeSelf()
- if group.numChildren < 1 then
- group:removeSelf()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement