public void Init(CatchScreenSettings screenSettings) { videoClipPath = screenSettings.videoPath.key; _videoPlayer.url = VideoManager.instance.GetCommonVideoPath(videoClipPath); _videoPlayer.targetTexture = (RenderTexture)_videoTexture.texture; _videoPlayer.Prepare(); }
private IHideable InitCatchScreenPage(CatchScreenSettings screenSettings) { UICatchScreen page = null; page = GameObject.Instantiate(_catchScreenPrefab, _screens); page.Init(screenSettings); return(page); }