public void Play()
 {
     if (m_Control != null && m_Control.CanPlay())
     {
         m_Control.Play();
     }
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 // Update is called once per frame
 void Update()
 {
     if (!mediaPlayer.IsLooping() && mediaPlayer.CanPlay() && mediaPlayer.IsFinished())
     {
         SceneManager.LoadScene(1);
     }
 }
Beispiel #4
0
 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;
			}
		}
Beispiel #6
0
        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;
            }
        }