有人可以给我一个如何使用 SKLabelHorizontalAlignmentMode 的例子吗?
这是我定义标签的方式:
RunningLevelLabel = [SKLabelNode labelNodeWithFontNamed:@"Chalkduster" ];
RunningLevelLabel.text = [NSString stringWithFormat:@"%i",numberOfBonusAlienPoints];
RunningLevelLabel.fontSize = 36;
RunningLevelLabel.position = CGPointMake(-10,-50); // offscreen
RunningLevelLabel.fontColor = [SKColor grayColor];
[StartScreenWindow addChild:RunningLevelLabel];
谢谢,有钱