using Assets.Scripts; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Net; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; public class DownloadController : PFUIPanel { // Start is called before the first frame update Transform Btn, Loading,Exit,BtnStart; ScrollRect scroll; string path; [SerializeField] Transform log; void Start() { Btn = transform.Find("Panel/BtnConfirm"); BtnStart = transform.Find("Panel/BtnStart"); Loading = transform.Find("Panel/LoadingContainer"); scroll = transform.Find("Panel/Scroll View").GetComponent(); Exit = transform.Find("Panel/Exit"); UIManager.AddEvent(Exit.gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, (b) => { Utils.showToast(gameObject, "Please update to the latest version."); }); SetType(1); //Button.GetComponent