Changing label color of a label in a different layer
问题 So I have a scene called MainScene where CCScrollView UpgradesScroller containing layer called UpgradesNew is located. I have a button that when tapped in MainScene , should set hasItem boolean to YES and then when the layer UpgradesNew is unhidden, a labels color should be changed based on the output of the boolean. Here is what I tried. Setting hasItem to true: -(void) buyItem { hasItem = true; } } In MainScene this is the method used when UpgradesNew is unhidden. -(void)Upgrades {