예제 #1
0
 public static void SetVisible(bool bShow)
 {
     UnityEngine.Object[] objArray = Resources.FindObjectsOfTypeAll(typeof(GUIHide));
     for (int i = 0; i < (int)objArray.Length; i++)
     {
         GUIHide gUIHide = (GUIHide)objArray[i];
         if (gUIHide.gameObject == null)
         {
             return;
         }
         gUIHide.gameObject.SetActive(bShow);
     }
 }
예제 #2
0
 public static void hide(ref ConsoleSystem.Arg args)
 {
     GUIHide.SetVisible(false);
 }
예제 #3
0
 public static void show(ref ConsoleSystem.Arg args)
 {
     GUIHide.SetVisible(true);
 }