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 Button,Loading,Exit; ScrollRect scroll; string path; [SerializeField] Transform log; void Start() { Button = transform.Find("Panel/BtnConfirm"); 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(false); //Button.GetComponent