65 lines
2.5 KiB
C#
65 lines
2.5 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using DG.Tweening;
|
|
using ZXK.UTility;
|
|
using ZXK.Framework;
|
|
/*******************************************************************************
|
|
*Create By CG
|
|
*Function 教学模式界面控制
|
|
*******************************************************************************/
|
|
namespace ZXK.BYSS
|
|
{
|
|
public class TeachPanel : UIBase
|
|
{
|
|
private Transform _videoTran = null;
|
|
private bool _isShowVideo = false;
|
|
|
|
private void Start()
|
|
{
|
|
_videoTran = GetWedage("VCRPanel_N").transform;
|
|
_videoTran.localScale = Vector3.zero;
|
|
//AddEventListener("VideoPlayBtn_N", UIEventType.OnButtonClick, () =>
|
|
//{
|
|
// if (_isShowVideo)
|
|
// {
|
|
// _videoTran.DOScale(0.0f, 0.3f);
|
|
// _videoTran.gameObject.SetActive(false);
|
|
// _isShowVideo = false;
|
|
// }
|
|
// else
|
|
// {
|
|
// _videoTran.DOScale(1.0f, 0.5f);
|
|
// _videoTran.gameObject.SetActive(true);
|
|
// //TODO 临时充数
|
|
// string _videoPath;
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_CLFJ_PATH;
|
|
// switch (AppManagement.Instance._CurType)
|
|
// {
|
|
|
|
// case EnumCtrl.Type.XHBY:
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_XHBY_PATH;
|
|
// break;
|
|
// case EnumCtrl.Type.QDCY:
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_QDCY_PATH;
|
|
// break;
|
|
// case EnumCtrl.Type.CLFJ:
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_CLFJ_PATH;
|
|
// break;
|
|
// case EnumCtrl.Type.ZNYD:
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_ZNYD_PATH;
|
|
// break;
|
|
// case EnumCtrl.Type.BYSS:
|
|
// _videoPath = Application.streamingAssetsPath + ConstCtrl.VIDEO_BYSS_PATH;
|
|
// break;
|
|
// }
|
|
|
|
|
|
// _videoTran.GetComponent<VCRCustom>().OnOpenVideoFile(_videoPath);
|
|
// _isShowVideo = true;
|
|
// }
|
|
//});
|
|
}
|
|
}
|
|
} |