Пример #1
0
        void Release()
        {
            CheckAndCache();

            OBJ_CG_Debuger debuger = centralPr.GetComponentInChildren <OBJ_CG_Debuger>();

            if (debuger != null)
            {
                debuger.Editor_Release();
                DestroyImmediate(debuger.gameObject);
            }
        }
Пример #2
0
 void Toggle()
 {
     if (ToggleOn)
     {
         Release();
         ToggleOn = false;
     }
     else
     {
         OBJ_CG_Debuger debuger_GUI = centralPr.GetComponentInChildren <OBJ_CG_Debuger>();
         if (debuger_GUI == null)
         {
             GameObject obj = new GameObject("OBJ_CG_Debuger");
             obj.transform.SetParent(centralPr.transform);
             debuger_GUI = obj.AddComponent <OBJ_CG_Debuger>();
             debuger_GUI.Create_Item_Graphics_Info_GUIPanel();
         }
         ToggleOn = true;
     }
 }