贵港吾悦商业管理有限公司多角色网上演练(吾悦广场)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
1.3 KiB

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Newtonsoft;
using System.IO;
using Newtonsoft.Json;
//public class ListVideo
//{
// public List<VideoData> PracticeList = new List<VideoData>();
// public List<VideoData> manoeuvreList = new List<VideoData>();
//}
public class PlayVideoPanel : MonoBehaviour
{
public Toggle DrillToggle;
public Toggle ExerciseToggle;
public Transform DrillVideo;
public Transform ExerciseVideo;
public Button BackButton;
// Start is called before the first frame update
void Start()
{
DrillToggle.onValueChanged.AddListener(DrillToggleClick);
ExerciseToggle.onValueChanged.AddListener(ExerciseToggleClick);
BackButton.onClick.AddListener(BackClick);
}
private void OnDestroy()
{
DrillToggle.onValueChanged.RemoveListener(DrillToggleClick);
ExerciseToggle.onValueChanged.RemoveListener(ExerciseToggleClick);
BackButton.onClick.RemoveListener(BackClick);
}
private void ExerciseToggleClick(bool value)
{
ExerciseVideo.gameObject.SetActive(value);
}
private void DrillToggleClick(bool value)
{
DrillVideo.gameObject.SetActive(value);
}
private void BackClick()
{
gameObject.SetActive(false);
}
}