void Update() { gameObject.transform.Rotate(Time.deltaTime * 10, Time.deltaTime * 30, 0); _videoPlugin.Update(); if (_videoPlugin.IsReadyToPlay && PlayRequested) { _videoPlugin.Play(); } }
private void Update() { if (_videoPlugin == null) { return; } _videoPlugin.Update(); if (_videoPlugin.IsReadyToPlay && PlayRequested) { _videoPlugin.Play(); } }
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(); }