using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using System.Xml; using System.Globalization; using UnityEngine.Networking; using System; using System.Runtime.InteropServices; //using SFB; using System.IO; using System.Text; [RequireComponent(typeof(Button))] public class Load_Template : MonoBehaviour{ public XmlDocument xmlDoc = null; public void OKWeb() { GameObject.Find("TEMPLATEpnl").GetComponent().alpha = 0; string filename = this.name; print("filename==="+filename); xmlDoc = new XmlDocument(); TextAsset Design = Resources.Load("DESIGNS/"+ name) as TextAsset; //print("Design.text"+Design.text); xmlDoc.LoadXml(Design.text); Invoke(nameof(LoadFile), 2); GameObject.Find("HIDER").transform.Find("LOADpnl").GetComponent().alpha = 0; GameObject.Find("HIDER").transform.Find("LoadingCircle").gameObject.SetActive(true); } public void LoadFile() { LoadXML.SetGLOBAL(xmlDoc); } }