private void PlayEnd(VideoPlayer source) { StaticData.ApplicationStart = false; StaticMemoryPool.ClearItem("startAnimation"); ((BookSceneUIPage)PageManager.Instance.CurrentPage).CloseSkip(); VideoPlay.Instance.FadeOut(() => { PlayBG(); }); }
public void Skip() { AnalysisManager.Instance.OnEvent("100005", null, "片头", "跳过片头视频"); StaticData.ApplicationStart = false; VideoPlay.Instance.FadeOut(() => { _bookSceneManager.PlayBG(); }); StaticMemoryPool.ClearItem("startAnimation"); CloseSkip(); }
void AddNode() { PageManager.Instance.CurrentPage.AddNode <StartSceneNode>(true); if (CorePlaySettings.Instance.m_UseMemoryPool) { VideoClip vc = ResourceLoadUtils.Load <VideoClip>("animation"); StaticMemoryPool.AddIntoPool("startAnimation", vc); } PageManager.Instance.gameObject.GetComponent <Canvas>().worldCamera = Camera.main; for (int i = 0; i < m_models.Length; ++i) { m_models[i].gameObject.SetActive(true); } }
private void PlayVideo() { if (StaticData.ApplicationStart) { if (CorePlaySettings.Instance.m_UseMemoryPool) { VideoPlay.Instance.PlayVideo(StaticMemoryPool.GetItem <VideoClip> ("startAnimation"), PlayEnd); } else { VideoClip vc = ResourceLoadUtils.Load <VideoClip> ("animation"); VideoPlay.Instance.PlayVideo(vc, PlayEnd); } } else { PlayBG(); } }