在 MyScene 类的子类中SKScene
- (void)increaseScoreBy:(float)amount
{
score += amount;
scoreNode.text = [NSString stringWithFormat:@"Score:%1.0f", score];
}
在员工类子类中SKNode
MyScene *objmyscene;
[objmyscene increaseScoreBy:2];
我想increaseScoreBy:
从员工类(的子类SkNode
)调用方法