소스 검색

过滤虚拟内容功能导致 video 播放状态不正常

DGJ 1 년 전
부모
커밋
c7a9a46f90
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      Assets/Remote/ShowRoom/RemoteVideoControl.cs

+ 6 - 1
Assets/Remote/ShowRoom/RemoteVideoControl.cs

@@ -42,12 +42,17 @@ public class RemoteVideoControl : MonoBehaviour
         }
     }
 
+    private void OnEnable()
+    {
+        StartCoroutine(VideoTimer());
+    }
+
     private void Start()
     {
         IsStart = true;
         slider.onValueChanged.AddListener(delegate { ChangeVideo(slider.value); });
 
-        StartCoroutine(VideoTimer());
+       
     }
 
     public void ChangeVideo(float value)