我有问题 整个包装都有问题 统一与googleıntersitial广告显示,但设备屏幕睡眠模式=
重要 不要触摸设备屏幕
示例代码
void Start(){
StartCoroutine(WaitErrorTextCoroutineAds());
}
IEnumerator WaitErrorTextCoroutineAds(){
yield return new WaitForSeconds(60);
Debug.LogError("finis second");
RequestInterstitial();
StartCoroutine(WaitXXX());
yield break;
}
IEnumerator WaitXXX(){
yield return new WaitForSeconds(5);
Debug.LogError("finish seconds");
interstitial.Show();
yield break;
}
void Update(){
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
答案 0 :(得分:0)
我写的很简单 团结总是唤醒代码
void Update(){
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
等待1分钟的展示广告 - > !!设备睡觉!!