20 lines
377 B
C#
20 lines
377 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.Video;
|
|
|
|
public class vi1 : MonoBehaviour
|
|
{
|
|
public VideoPlayer videoPlayer;
|
|
|
|
|
|
void Update()
|
|
{
|
|
if (videoPlayer.frame == (long)(videoPlayer.frameCount - 1))
|
|
{
|
|
SceneManager.LoadScene(1);
|
|
}
|
|
}
|
|
}
|