33 lines
810 B
C#
33 lines
810 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Kill.UI.Components;
|
|
namespace Kill.UI.Pages
|
|
{
|
|
public class SafetylearningVideoPage : MonoBehaviour
|
|
{
|
|
public string videoPath;
|
|
public VideoCtrl videoCtrl;
|
|
//0不可点击 1可点击
|
|
public GameObject[] nextButtons;
|
|
private void Start()
|
|
{
|
|
// Init();
|
|
}
|
|
public void Init(string vp="")
|
|
{
|
|
nextButtons[0].SetActive(true);
|
|
nextButtons[1].SetActive(false);
|
|
if(vp!="")
|
|
videoPath = vp;
|
|
videoCtrl.Init(videoPath,PLayOver);
|
|
}
|
|
public void PLayOver()
|
|
{
|
|
nextButtons[0].SetActive(false);
|
|
nextButtons[1].SetActive(true);
|
|
}
|
|
}
|
|
|
|
}
|