public void Play() { if (m_Control != null && m_Control.CanPlay()) { m_Control.Play(); } }
public void Play() { if (m_Control != null && m_Control.CanPlay()) { m_Control.Play(); } else { // Can't play, perhaps it's still loading? Queuing play using m_AutoStart to play after loading m_AutoStart = true; } }
// Update is called once per frame void Update() { if (!mediaPlayer.IsLooping() && mediaPlayer.CanPlay() && mediaPlayer.IsFinished()) { SceneManager.LoadScene(1); } }
public void Play() { if (m_Control != null && m_Control.CanPlay()) { m_Control.Play(); } else { m_AutoStart = true; m_AutoStartTriggered = false; } }
public void Play() { if (m_Control != null && m_Control.CanPlay()) { m_Control.Play(); m_EventFired_ReadyToPlay = true; } else { m_AutoStart = true; } }
public void Play() { if (m_Control != null && m_Control.CanPlay()) { m_Control.Play(); // Mark this event as done because it's irrelevant once playback starts m_EventFired_ReadyToPlay = true; } else { // Can't play, perhaps it's still loading? Queuing play using m_AutoStart to play after loading m_AutoStart = true; } }