using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using UnityAsync; using WaitUntil = UnityAsync.WaitUntil; using System.Threading.Tasks; using UnityEngine.UI; public class GCZLLayer : MonoBehaviour { public GameObject classPrefab; public GameObject informationPrefab; public RectTransform classContent; public RectTransform informationContent; public YZTLayer zTLayer; public Sprite[] sprites; private List informations = new List(); private GameObject lastClassBtn; private int currentClass = -99; private GameObject InfoPanel; private Button InfoExitButton; private Button Info_DetailButton; private Text InfoTitleText; private Text InfoClassText; private Text InfoNoText; private Text InfoDayText; private RawImage InfoFM; private GameObject DetailPanel; private Button DetailExitButton; private Text DetailTitleText; private LayerUnitData currentData; private Button OpenAniButton; private Button CloseAniButton; private Button detail_modelButton; private Button detail_designButton; private Button detail_photoButton; private Button detail_videoButton; private CanvasGroup detail_modelCG; private CanvasGroup detail_designCG; private CanvasGroup detail_photoCG; private CanvasGroup detail_videoCG; private RawImage showFrame; private Button lastPhotoButton; private Button nextPhotoButton; public RenderTexture modelRT; public string[] BY_PhotoUrl; public string[] TK_PhotoUrl; public int photoIndex; public string[] BY_PdfUrl; public string[] TK_PdfUrl; public int pdfIndex; public string[] BY_PdfDownloadUrl; public string[] TK_PdfDownloadUrl; private Button downloadPdfButton; private int showTypeIndex = 0; [DllImport("__Internal")] private static extern void OpenNewWebsite(string str); private void Awake() { InfoPanel = this.transform.Find("InfoPanel").gameObject; InfoTitleText = InfoPanel.transform.Find("Title").GetComponent(); InfoClassText = InfoPanel.transform.Find("Class").GetComponent(); InfoNoText = InfoPanel.transform.Find("No").GetComponent(); InfoDayText = InfoPanel.transform.Find("Day").GetComponent(); InfoFM = InfoPanel.transform.Find("fm").GetComponent(); InfoExitButton = InfoPanel.transform.Find("CloseButton").GetComponent