using UnityEngine; using UnityEngine.UI; public class BathPNL : MonoBehaviour { public void StartPNL() { _G.SC[0] = ""; _G.ff = "0"; SceneModeManager.Instance.SetSceneMode(SceneModes.Panel); //"PNL"; float NO = 16; float maxw = 8; DOIT.BTNPNL("TOG1", 100, "MODEL", "BATH", NO, maxw, "BATH/"); _G.PNLSelect = "BATH"; DOIT.Sizebackground(NO, maxw); GameObject.Find("MODEL").transform.localPosition = new Vector3(0, 5, 0); float HBG = 140 + (NO / maxw) * 110f; DOIT.OffMODIFYER(); GameObject.Find("EMPTYLpnl").transform.Find("CATEGORY").gameObject.SetActive(true); //Category DOIT.BTNCAT("BATH", 1, "BATH", "", "", "","",""); GameObject.Find("EMPTYLpnl").transform.Find("CATEGORY").transform.localPosition = new Vector3(0, HBG / 2 - 0, 1); //Modifiyer GameObject.Find("EMPTYLpnl").transform.Find("MODIFYER").transform.Find("TOILET").gameObject.SetActive(true); GameObject.Find("EMPTYLpnl").transform.Find("MODIFYER").transform.localPosition = new Vector3(0, -HBG / 2 + 50, 1); /* _G.SC[1] = "12"; _G.SC[2] = "30"; _G.SC[3] = "12"; GameObject.Find("mW").gameObject.GetComponent().text = _G.SC[1] + _G.Sys; GameObject.Find("mH").gameObject.GetComponent().text = _G.SC[2] + _G.Sys; GameObject.Find("mD").gameObject.GetComponent().text = _G.SC[3] + _G.Sys; GameObject.Find("mFF").gameObject.GetComponent().text = _G.ff + _G.Sys;*/ } public static void Add() { _G.SC[1] = GameObject.Find("mW").GetComponent().text; _G.SC[2] = GameObject.Find("mH").GetComponent().text; _G.SC[3] = GameObject.Find("mD").GetComponent().text; _G.ff = GameObject.Find("mFF").GetComponent().text; string Hex = Get.o2("EMPTYLpnl/MODIFYER/TOILET/ColorPickerToilet/Button","Image").GetComponent().sprite.name; Color col = Get.o2("EMPTYLpnl/MODIFYER/TOILET/ColorPickerToilet/Button","Image").GetComponent().color; _G.SC[4] = ColorUtility.ToHtmlStringRGB(col)+"_"+ Hex; string Hex2 = Get.o2("EMPTYLpnl/MODIFYER/TOILET/ColorPickerToilet2/Button","Image").GetComponent().sprite.name; Color col2 = Get.o2("EMPTYLpnl/MODIFYER/TOILET/ColorPickerToilet2/Button","Image").GetComponent().color; _G.SC[5] = ColorUtility.ToHtmlStringRGB(col2)+"_"+ Hex2; DOIT.CloseALLPNL(); _M.PH(3, 230, "ffffff", 1, 1); PAINT.SEL = "ON"; SceneModeManager.Instance.SetSceneMode(SceneModes.Install); _G.addOBJ = "bath"; } }