Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On clear, set finish = NO, willPop = NO #7

Open
Zakay opened this issue Jul 16, 2012 · 0 comments
Open

On clear, set finish = NO, willPop = NO #7

Zakay opened this issue Jul 16, 2012 · 0 comments

Comments

@Zakay
Copy link

Zakay commented Jul 16, 2012

How about setting finish and willPop to NO when clearing a CCBlade. this way it can be re-used, instead of allocating another blade. Oh yeah, it also needs to be public.

- (void) clear {
    [path removeAllObjects];
    finish = NO;
    willPop = NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant