ios - 关闭iOS模式后产生WaitForSeconds中断(Unity 3D)
<p><p>如果我之前查看过 iOS 模式(例如 Chartboost“更多应用程序”或 GameCenter 排行榜),我对 <code>yield WaitForSeconds</code> 的 JavaScript 调用不会完成。</p>
<p>代码:</p>
<pre><code>function GoToScene(){
GameObject.Find("SceneFader").SendMessage("FadeToBlack");
GameObject.Find("MenuSounds").SendMessage("Play_select");
//code does not get past here
yield WaitForSeconds(0.254);
//Application.LoadLevel() is never called
Application.LoadLevel(this.scene);
}
</code></pre>
<p>模态是否锁定了所需的线程?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>模态框正在卡住时间,我可以使用以下方法修复它:</p>
<pre><code>if (Time.timeScale == 0){
Time.timeScale = 1;
}
</code></pre></p>
<p style="font-size: 20px;">关于ios - 关闭iOS模式后产生WaitForSeconds中断(Unity 3D),我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/23411597/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/23411597/
</a>
</p>
页:
[1]