Created
April 7, 2014 14:35
-
-
Save veeneck/10021486 to your computer and use it in GitHub Desktop.
Sprite Kit Getters & Setters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in header file | |
BOOL isDying; | |
// in subclass where object is referenced | |
// for example, enemy = (Character*)target | |
if(enemy->isDying) { | |
} | |
// VS a getter in header | |
@property (nonatomic, getter=isDying) BOOL dying; | |
// in class | |
if(enemy.dying) { | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment