Exemplo n.º 1
0
 private void OnEnable()
 {
     mediaPlayer.OnEnable();
     mediaPlayer.prepareCompleted += OnPrepareCompleted;
     mediaPlayer.started          += OnStarted;
     mediaPlayer.firstFrameReady  += OnFirstFrameReady;
     mediaPlayer.loopPointReached += OnLoopPointReached;
 }
Exemplo n.º 2
0
    void OnEnable()
    {
        if (m_Control != null && m_WasPlayingOnPause)
        {
            m_AutoStart = true;
            m_AutoStartTriggered = false;
            m_WasPlayingOnPause = false;
        }

        if (m_Player != null)
        {
            m_Player.OnEnable();
        }

        StartRenderCoroutine();
    }