34 lines
1.1 KiB
C#

using CG.Framework;
using CG.UTility;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*******************************************************************************
*Create By CG
*Function
*******************************************************************************/
namespace ZXK.GYJQR
{
public class TeachVideoPanel : UIBase
{
private VCRCustom _videoCtrl;
protected override void Awake()
{
base.Awake();
_videoCtrl = GetWedage("VCRPanel_N").GetComponent<VCRCustom>();
AddEventListener("ExitVideoBtn_N", UIEventType.OnButtonClick, () =>
{
UI_Manage.Instance.ClosePanel("TeachVideoPanel");
GameManager.Instance._StateContext.SetState(
new ModelSelectState(GameManager.Instance._StateContext));
});
}
private void OnEnable()
{
//TODO ÁÙʱ³äÊý
string _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_CSDY_PATH;
_videoCtrl.GetComponent<VCRCustom>().OnOpenVideoFile(_videoPath);
}
}
}