How to dismiss SKScene?

后端 未结 6 1590
迷失自我
迷失自我 2020-12-09 17:30

When Im finished with my SKScene is there a way to dismiss the SKScene from within my SKScene class?

If not back in my Viewcontroller where I present my SKScene

6条回答
  •  -上瘾入骨i
    2020-12-09 18:16

    Maybe my variant will be helpful:

    [[self.scene childNodeWithName:@"YourChildNodeName"] removeFromParent];
    

提交回复
热议问题