标签:layer fixed 方法 real deb while upd dup realtime
private IEnumerator AudioCallBack(AudioSource AudioObject,Action action)
{
Debug.Log(AudioObject.isPlaying);
while (AudioObject.isPlaying)
{
yield return new WaitForSecondsRealtime(0.1f);//延迟零点一秒执行
}
action();
}
private IEnumerator VideoCallBack(VideoPlayer VideoObject, Action action)
{
Debug.Log(VideoObject.isPlaying);
while (VideoObject.isPlaying)
{
yield return new WaitForFixedUpdate(); //跟FixedUpdate 一样根据固定帧 更新
}
action();
}
标签:layer fixed 方法 real deb while upd dup realtime
原文地址:https://www.cnblogs.com/Aaron-Han/p/12177519.html