private static void Configure()
 {
     config = AssetDatabase.LoadAssetAtPath("Assets/Settings/Toolbar/ToolbarConfig.asset", typeof(ToolbarConfig)) as ToolbarConfig;
     if (config == null)
     {
         initialized = false;
         // FIXME: should load a default config from the package folder if we don't have one in the project
         // and/or prompt user to create a config
     }
     else
     {
         initialized = true;
     }
 }
예제 #2
0
 private static void Configure()
 {
     config = AssetDatabase.LoadAssetAtPath("Assets/Settings/Toolbar/ToolbarConfig.asset", typeof(ToolbarConfig)) as ToolbarConfig;
     if (config == null)
     {
         initialized = false;
         // FIXME: should load a default config from the package folder if we don't have one in the project
         // and/or prompt user to create a config
         // Debug.Log("Could not load toolbar config?");
     }
     else
     {
         initialized = true;
         sceneNames.Clear();
         if (config.sceneLoaderList != null)
         {
             for (int i = 0; i < config.sceneLoaderList.Length; i++)
             {
                 sceneNames.Add(config.sceneLoaderList[i].name);
             }
         }
     }
 }