已经
Action.m
-(void)importLevel{
menu *startMenu = (menu *)self.scene.view.window.rootViewController;
_level = startMenu.level;
NSLog(@"LEVEL:");
NSLog(@"%f", _level);
}
和menu.h
@property (nonatomic, assign) float level;
我知道self.scene.view.window.rootViewController
出了问题,但我找不到任何解决方案