using UnityEngine; using UnityEngine.UI; public class EditFacia : MonoBehaviour { public void add() { print("----------------EditFacia----------"+this.name); string On=Get.ToggleOnInChild("EDITCABpnl/EDITOR/SGNSIDEPNL"); string[] C= _G.OBJs[_G.nO]; string A=C[66].Split('?')[1]; string H = Get.o1("HEAD/MoH/Btn Mesure/mH").GetComponent().text; if(On=="G0" || On=="G1" || On=="G2"){ // if(On=="G0") { C[66] = _G.GLOBAL[0][4].Split('?')[0]+"?"+A+"?"+H ; C[64] = DOIT.ChangeCodeOnPos(C[64],3,setOgee(H,0),"?");} // if(On=="G1") { C[66] = _G.GLOBAL[1][4].Split('?')[0]+"?"+A+"?"+H ; C[64] = DOIT.ChangeCodeOnPos(C[64],3,setOgee(H,1),"?");} // if(On=="G2") { C[66] = _G.GLOBAL[2][4].Split('?')[0]+"?"+A+"?"+H ; C[64] = DOIT.ChangeCodeOnPos(C[64],3,setOgee(H,2),"?");} } if(On=="NONE") { C[66] = "NONE"+"?"+"90"+"?"+"6"; C[64] = DOIT.ChangeCodeOnPos(C[64],3,"0","?"); } if (On != "SETCOL") { print("C[66]===" + C[66]); DOIT.REDOCAB(_G.nO); DASH.REFRESH(); GameObject.Find("HIDER").transform.Find("LoadingCircle").gameObject.SetActive(false); } if(On=="SETCOL"){ Get.o3("Panel_SCENE","PNL","UNIVERSALpnl").SetActive(true); //NIVERSALPNL.StartPNL("BtnFacia"); Get.o3("Panel_SCENE","PNL","EDITCABpnl").SetActive(false); } } public static void set(){ int nO=Get.GetObjectIndex(SceneModeManager.SelectedName); string[] C = _G.OBJs[nO]; Get.o1("EDITCABpnl/EDITOR/HEAD/MoH/Btn Mesure/mH").GetComponent().text=C[66].Split('?')[2]; } public string setOgee(string H,int G){ string HO=UIT.Global(Header.Ext,_G.G);//GlobalSelectionManager.GetValue(GlobalOption.EXTPNL_2); string H2=UNIVERSALPNL.PosOgee(H,HO); return H2; } }