lcy
2026-03-19 5301d08eac2f7f0b25ce3f2bef7d24f92c79321c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using UnityEngine;
using UnityEngine.Video;
using UnityEngine.UI;
 
public class VideoWin : UIBase
{
    public UIVideoPlayer videoPlayer;
    protected override void OnOpen()
    {
        // 视频准备完成后会自动播放
    }
 
    protected override void OnPreClose()
    {
        base.OnPreClose();
        videoPlayer.Unload();
    }
 
}