Пример #1
0
        protected virtual void OnEnable()
        {
            //Debug.Log("OnEnable");

            // scan the project for enumfiles generated by this Wizard
            _list = EnumFileFinder.FindEnumFiles();

            MatchFormWithExistingEnum();

            enumListFoldOut      = EditorPrefs.GetBool(__EnumListFoldOutPrefKey__, false);
            sourcePreviewFoldout = EditorPrefs.GetBool(__EnumListFoldOutPrefKey__, false);
        }
Пример #2
0
        protected virtual void OnEnable()
        {
            //Debug.Log("OnEnable");

            // scan the project for enumfiles generated by this Wizard
            _list = EnumFileFinder.FindEnumFiles();

            _orderedEnumList = _list.Values.ToList();

            _orderedEnumList.Sort((x, y) =>
                                  string.Compare(x.nameSpace + x.enumName
                                                 , y.nameSpace + y.enumName, StringComparison.Ordinal));


            MatchFormWithExistingEnum();

            enumListFoldOut      = EditorPrefs.GetBool(__EnumListFoldOutPrefKey__, false);
            sourcePreviewFoldout = EditorPrefs.GetBool(__EnumListFoldOutPrefKey__, false);
        }