using TMPro; using UnityEngine; using UnityEngine.UI; public class VF : MonoBehaviour { public void Redo() { string newVF=GetFromPanel(); if(_G.PNL=="CABCREATORpnl"){ if(CabCreator.GetDoorNumber()=="1")_G.VF=newVF; if(CabCreator.GetDoorNumber()=="2")_G.VF2=newVF; } else{ if(ROWHEIGHT.GetDoorNumber()=="1")_G.VF=newVF; if(ROWHEIGHT.GetDoorNumber()=="2")_G.VF2=newVF; } if(newVF.IndexOf("v")==-1){ transform.GetComponent().isOn = false; Redo(); _M.PH(23,0, "ffffff", 1, 1); } } public static string GetFromPanel() { GameObject ROWEDITS; if(_G.PNL=="CABCREATORpnl"){ROWEDITS=Get.o2("CABCREATORpnl","ROWEDITS");} else ROWEDITS=Get.o2("CABINETpnl/ROWHEIGHTPNL","ROWEDITS"); bool Lock; int NR=ROWEDITS.transform.childCount; int DIV; string newVF=""; int dn=1; string vf; for(int i=0; i().isOn; print(i+" lock==="+Lock); DIV=ROWEDITS.transform.GetChild(i).transform.Find("DivDrop").GetComponent().value+1; vf="v";if(Lock)vf="f"; for(int d=0; d