Beispiel #1
0
        public static DebugPanelMonoBehaviour GetInstance()
        {
            if (ms_Instance == null)
            {
                GameObject gameObject = new GameObject();
                ms_Instance = gameObject.AddComponent <DebugPanelMonoBehaviour>();
#if UNITY_EDITOR
                if (Application.isPlaying)
#endif
                {
                    DontDestroyOnLoad(gameObject);
                }

                gameObject.hideFlags = HideFlags.HideInHierarchy
                                       | HideFlags.DontSave;
            }

            return(ms_Instance);
        }
 public BaseMonoBehaviourTab()
 {
     DebugPanelMonoBehaviour.GetInstance().AddTab(this);
 }