protected override void SetSecodaryTexture() { if (_player == null) { _player = new VideoUrlSourceManage(); _player.Setup(GetComponent <VideoPlayer>()); } if (string.IsNullOrEmpty(VideoUrls[_currentTexture]) || _player == null) { if (_player != null) { _player.Stop(); } return; } #if UNITY_EDITOR if (!EditorApplication.isPlaying) { return; } #endif _player.Stop(); _player.SetUrl(BaseUrl + _player.GetResUrlPath(), VideoUrls[_currentTexture]); _player.errorReceived += ErrorReceived; _holdFade = true; StartCoroutine(PrepareVideo()); }
protected override void OnFullBlack() { if (_player == null) { _player = new VideoUrlSourceManage(); _player.Setup(GetComponent <VideoPlayer>()); } if (string.IsNullOrEmpty(VideoUrls[_currentTexture]) || _player == null) { if (_player != null) { _player.Stop(); } return; } _player.Play(); }