I am trying to load a CCScene and then change some of it's properties before using the scene. When I try to change it's properties it says [CCScene setProperty] - unrecognized selector sent to instance, even though I casted the CCScene to the correct class with the public properties!
#import "MainScene.h"
#import "Gameplay.h"
@implementation MainScene
-(void)play:(CCButton *)sender{
Gameplay *gameplay = (Gameplay *)[CCBReader loadAsScene:@"Gameplay"];
NSLog(@"%@\n",[gameplay class]);
}
@end
This code outputs CCScene instead of outputting Gameplay. How do I fix this?