FIX pauseGame Modal in GameEnd View

This commit is contained in:
Niko Jochim 2020-06-26 02:55:02 +02:00
parent 67c400a069
commit c7aa992790

View File

@ -336,6 +336,7 @@ class GameScene: SKScene{
@objc func pauseGame() -> Void {
if !GameCenterManager.sharedInstance.gameEnded {
entityManager.removeModal()
entityManager.getHUD()?.roundTimer.stopTimer()
entityManager.add(Modal(modaltype: .PauseGame,
@ -347,6 +348,7 @@ class GameScene: SKScene{
collisionBase: nil
))
}
}
@objc func resumeGame() -> Void {
entityManager.removeModal()