I created a button in GameViewController, pause button, to pause the game. I wrote a void method in GameScene, -(void) stop. So that when I click the button, the app implement -(void)stop
//GameScene
-(void)stop{
...//code to stop the game
}
//GameViewController
-(IBAction)pause:(id):sender{
GameScene *gameScene = [[GameScene alloc] init];
[gameScene stop];
}
When I click the button, the character is still running. Please help. Thanks