using UnityEngine; public class ClosePNL : MonoBehaviour { public void ThisOnly() { transform.parent.gameObject.SetActive(false); } public void Alpha() { Set.alpha(transform.parent.gameObject, false); } public void CloseAiPnl() { AiButton.Instance.GetSelector().SetActive(false); GameObject[] tohide = GameObject.FindGameObjectsWithTag("tohide"); foreach (GameObject see in tohide) { Set.alpha(see, true); } transform.parent.parent.gameObject.SetActive(false); DOIT.CloseALLPNL(); DOIT.ResetRoomSelect(); UIPathEffect.StopMovement(); Set.alpha(Get.o2("Panel_SCENE", "DASH"), true); Set.alpha(Get.o2("Panel_SCENE", "MAIN BTN"), true); _AI.On = false; } public void DesignerMode() { ThisOnly(); Set.alpha(Get.o2("Panel_SCENE", "DASH"), true); Set.alpha(Get.o2("Panel_SCENE", "MAIN BTN"), true); } }