using UnityEngine.UI; using UnityEngine; public class Check : MonoBehaviour { public static bool togOn(string GOname){ bool On=false; if(Get.o1(GOname)!=null){if(Get.o1(GOname).GetComponent().isOn==true)On=true;} return On; } public static bool TogOn(GameObject GOname){ if(GOname!=null){return GOname.GetComponent().isOn;} return false; } public static float CanvasGroup(string GOname){ float alpha=1; if(Get.o1(GOname).GetComponent().alpha==0){alpha=0;} return alpha; } }