示例#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);
 }