1
基本上現在我TitleScene,那裏是我的比賽現名,並當輕敲屏幕上就跳轉到GameScene任何地方,它看起來是這樣的:如何在雪碧包一個按鈕的touchesBegan
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
SKScene *scene = [GameScene sceneWithSize:self.size];
SKTransition *transition = [SKTransition pushWithDirection:SKTransitionDirectionUp duration:1.0f];
[self.view presentScene:scene transition:transition];
}
我的問題如何將此方法更改爲按鈕?