Example #1
0
    public void Play_WinMovie()
    {
        If_WinM = true;
        WinMovie.SetActive(true);

        WinMovie.GetComponent <VideoPlayer>().Play();
        Debug.Log("WinMovie Star");
    }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (StarMovie.GetComponent <VideoPlayer>().isPlaying == false && IF_StarM != false)
     {
         StarMovie.SetActive(false);
         Debug.Log("StarMovie End");
         IF_StarM = false;
     }
     if (WinMovie.GetComponent <VideoPlayer>().isPlaying == false && If_WinM != false)
     {
         WinMovie.SetActive(false);
         Debug.Log("WinMovie End");
         // SceneManager.LoadScene(1);
         Time0._instance.Settlement();
         If_WinM = false;
     }
 }
Example #3
0
 // public MovieTexture StarMovieTexture;
 // Use this for initialization
 void Start()
 {
     StarMovie.SetActive(false);
     WinMovie.SetActive(false);
 }