void Update()
        {
            gameObject.transform.Rotate(Time.deltaTime * 10, Time.deltaTime * 30, 0);

            _videoPlugin.Update();
            if (_videoPlugin.IsReadyToPlay && PlayRequested)
            {
                _videoPlugin.Play();
            }
        }
Ejemplo n.º 2
0
        private void Update()
        {
            if (_videoPlugin == null)
            {
                return;
            }

            _videoPlugin.Update();

            if (_videoPlugin.IsReadyToPlay && PlayRequested)
            {
                _videoPlugin.Play();
            }
        }
Ejemplo n.º 3
0
    void Update()
    {
        if (m_videoTexture == null)
        {
            return;
        }

        m_videoTexture.Update();
        if (m_videoTexture.IsDone)
        {
            Stop();
        }
        if (m_videoTexture.IsReadyToPlay)
        {
            UpdateProgressSlider();
            UpdateVideoTime();
            if (m_playWhenReady)
            {
                m_playWhenReady = false;
                Play();
            }
        }
        UpdateVideoPlayerControlsVisibility();
    }