killapp/Assets/Scripts/UI/Pages/Safetylearning/SafetylearningVideoPage.cs

33 lines
810 B
C#
Raw Normal View History

2026-04-24 16:57:44 +08:00
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);
}
}
}