Пример #1
0
        //=========================================================================================

        override protected void Awake()
        {
            base.Awake();

            ms_Instance = this;

            m_lowerLeftFontStyle                   = new GUIStyle();
            m_lowerLeftFontStyle.clipping          = TextClipping.Clip;
            m_lowerLeftFontStyle.border            = new RectOffset(0, 0, 0, 0);
            m_lowerLeftFontStyle.normal.background = null;
            m_lowerLeftFontStyle.fontSize          = 12;
            m_lowerLeftFontStyle.normal.textColor  = Color.white;
            m_lowerLeftFontStyle.fontStyle         = FontStyle.Bold;
            m_lowerLeftFontStyle.alignment         = TextAnchor.LowerLeft;

            if (UIMask != null)
            {
                UIMask.gameObject.SetActive(true);
            }
        }
Пример #2
0
        public new static void Show(string permission)
        {
            if (string.IsNullOrEmpty(permission))
            {
                return;
            }

            if (ms_Instance == null)
            {
                GameObject prefab = (GameObject)Resources.Load("SGFDebugerGUI");
                if (prefab != null)
                {
                    GameObject obj = (GameObject)Instantiate(prefab);
                    ms_Instance = obj.GetComponent <SGFDebugerGUI>();
                    DontDestroyOnLoad(obj);
                }
            }

            if (ms_Instance != null)
            {
                ms_Instance.EnsureLogCallback();
                (ms_Instance as SGFDebugerGUIBase).Show(permission);
            }
        }
Пример #3
0
 public static void Init()
 {
     NetDebuger.EnableLog = NetDebuger.EnableLog;
     SGFDebugerGUI.AddDbgGUI("NetDebuger", OnDbgGUI);
 }