FIX pauseGame Modal in GameEnd View
This commit is contained in:
parent
67c400a069
commit
c7aa992790
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user