using System.Collections; using System.Collections.Generic; using UnityEngine; public class SynchronizationVideo : MonoBehaviour { private AVProVideoPlayer AvideoPlayer; private void Start() { AvideoPlayer = GetComponent(); MultiPlayerManager.Instance.OnSynVideo += OnSyncVideo; } private void OnSyncVideo(SyncVideoData syncVideo) { if (syncVideo.isPlay) AvideoPlayer.Play(); else AvideoPlayer.Pause(); if (syncVideo.times != -1) AvideoPlayer.SetSeek(syncVideo.times); } public void SendSyncVideo() { } public void IsPlay() { } public void isPause() { } public void SetSeek( float times) { } }