/////////////////////////////////////////
        public static void Load()
        {
            if (i != null)
            {
                return;
            }

            i = JsonUtility.FromJson <P>(fs.ReadAllText(projectSettingsPath));
            if (i == null)
            {
                i = new P();
                //Debug.Log( "new EditorToolbarSettings" );
                Save();
            }
        }
Exemple #2
0
        /////////////////////////////////////////
        public void RegisterFiles(InstallType mode)
        {
            P.Load();

            InitID();
            MakeRoot();
            if (mode == InstallType.通常)
            {
                LoadDefault();
            }
            else
            {
                AddUnityPackages();
            }
            //m_registerItems = m_registerItems.Distinct( x => x.name ).ToList();
            ReloadAndSorting();
        }
Exemple #3
0
 /////////////////////////////////////////
 public static void ApplyModifyList()
 {
     P.Load();
     foreach (var p in s_addItems)
     {
         if (p.installType == InstallType.データベースに直インストール)
         {
             //	P.Add( p );
             Debug.Log(p.value);
             データベースに直インストール(p.value);
         }
         P.Remove(p);
     }
     foreach (var p in s_removeItems)
     {
         // ローカルパッケージはディレクトリ指定の方で。
         if (!p.value.StartsWith("file:"))
         {
             P.Add(p);
         }
     }
 }