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(); 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().OnOpenVideoFile(_videoPath); } } }