SKScene和SKView的暂停属性之间的区别 [英] Difference between paused property of SKScene and SKView

查看:154
本文介绍了SKScene和SKView的暂停属性之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码暂停我的SKScene:

I am pausing my SKScene using the following code:

self.paused = YES;

然而,根据这个 Andrey Gordeev / 2043580>回答,也可以使用此行暂停一个场景:

However, according to this answer by Andrey Gordeev, one can also pause a scene using this line:

self.view.paused = YES;

我想了解调用其中一个(或两个)暂停a会有什么不同场景。

I would like to understand what difference it would make to call the either (or both) to pause a scene.

推荐答案

暂停 SKView 停止调用更新: SKScene 的方法。

Pausing SKView stops calling update: method for SKScene.

暂停 SKScene 不这样做。

我通常会暂停 SKScene SKView

编辑:

As iOS9 暂停场景会暂停更新:方法。

As of iOS9 pausing the scene will pause the update: method.

这篇关于SKScene和SKView的暂停属性之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆