示例#1
0
        private void PlayEnd(VideoPlayer source)
        {
            StaticData.ApplicationStart = false;
            StaticMemoryPool.ClearItem("startAnimation");
            ((BookSceneUIPage)PageManager.Instance.CurrentPage).CloseSkip();

            VideoPlay.Instance.FadeOut(() => { PlayBG(); });
        }
示例#2
0
 public void Skip()
 {
     AnalysisManager.Instance.OnEvent("100005", null, "片头", "跳过片头视频");
     StaticData.ApplicationStart = false;
     VideoPlay.Instance.FadeOut(() => { _bookSceneManager.PlayBG(); });
     StaticMemoryPool.ClearItem("startAnimation");
     CloseSkip();
 }
示例#3
0
    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);
        }
    }
示例#4
0
 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();
     }
 }