using System.Collections.Generic; using UnityEngine; using UnityEngine.UI.Extensions; using UnityEngine.UI; public class RedrawPNL : MonoBehaviour { //GameObject PNL; // Start is called before the first frame update public static void Start() { //Get.o2("Canvas","Panel_DRAWPlan").SetActive(true); //print("-------------------------START DRAW----------------"); _G.NW=1; //print("-------------------------START DRAW 2----------------"); GameObject PNL=Get.o2("Panel_DRAWPlan","Plan"); PNL.SetActive(true); //Get.o2("Panel_DRAWPlan","3D").SetActive(false); _G.Down=false; _G.Open=true; UILineRenderer pr=PNL.transform.GetComponent(); var pointlist = new List(); pr.Points = pointlist.ToArray(); DOIT.DELETEAllChild("Plan"); _G.wP=new Vector2[24]; } public void btnClick() { _G.ROOM=this.name; print("_G.ROOM="+_G.ROOM); Get.o2("PLAN2D", "FINISH").gameObject.SetActive(true); } }