FIX pauseGame Modal in GameEnd View
This commit is contained in:
parent
67c400a069
commit
c7aa992790
@ -336,16 +336,18 @@ class GameScene: SKScene{
|
|||||||
|
|
||||||
|
|
||||||
@objc func pauseGame() -> Void {
|
@objc func pauseGame() -> Void {
|
||||||
entityManager.removeModal()
|
if !GameCenterManager.sharedInstance.gameEnded {
|
||||||
entityManager.getHUD()?.roundTimer.stopTimer()
|
entityManager.removeModal()
|
||||||
entityManager.add(Modal(modaltype: .PauseGame,
|
entityManager.getHUD()?.roundTimer.stopTimer()
|
||||||
base: nil,
|
entityManager.add(Modal(modaltype: .PauseGame,
|
||||||
anchorPoint: CGPoint(x: self.size.width / 2 , y: self.size.height / 2),
|
base: nil,
|
||||||
gameScene: self,
|
anchorPoint: CGPoint(x: self.size.width / 2 , y: self.size.height / 2),
|
||||||
currentDraggedBase: nil,
|
gameScene: self,
|
||||||
touchLocation: nil,
|
currentDraggedBase: nil,
|
||||||
collisionBase: nil
|
touchLocation: nil,
|
||||||
))
|
collisionBase: nil
|
||||||
|
))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func resumeGame() -> Void {
|
@objc func resumeGame() -> Void {
|
||||||
|
Loading…
Reference in New Issue
Block a user