title: Control video player with button and change scene
body: <p>I'm trying to create a FMV game and I would like to figure out a way to control the video player with a UI button to change scene but only after the clip has finished playing.</p>
  
  <p>If the user doesn't pick anything it will automatically be a default pathway and I have managed to use loopPoinReached and it has worked.</p>
  
  <p>I can figure out how to use the same loopPointReached with a button.</p>
  
  <p>Here is the video player code and it will auto load the next scene.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.SceneManagement;
  
  
  public class loadBaseCampSeq : MonoBehaviour
  {
      void Start()
      {
          GameObject camera = GameObject.Find("Main Camera");
  
          var videoPlayer = camera.AddComponent&lt;UnityEngine.Video.VideoPlayer&gt;();
  
  
          videoPlayer.renderMode = UnityEngine.Video.VideoRenderMode.CameraNearPlane;
  
  
          videoPlayer.url = "Assets/VideoAssets/intro.mp4";
  
          videoPlayer.isLooping = false;
  
  
          videoPlayer.Play();
  
          videoPlayer.loopPointReached += EndReached;
  
      }
  
      void EndReached(UnityEngine.Video.VideoPlayer vp)
      {
          UnityEngine.SceneManagement.SceneManager.LoadScene("baseCampSeq");
      }
  }
  </code></pre>
  
  <p>Here is the basic code that I have assigned to the UI Button On Click ()</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.SceneManagement;
  
  public class loadTruckButton : MonoBehaviour
  {
      public void truckSeq()
      {
          SceneManager.LoadScene("truckSeq");
      }
  }
  </code></pre>
  
  <p>I have been trying to reference the "EndReached" from the other script in the button but I cannot figure it out.</p>
  
  <p>Any help would be awesome!</p>
  
  <p>Thanks</p>