示例#1
0
 private static void Create(InCommonDataManager Manager, bool ignoreMissing)
 {
     if (Manager.AudioTree == null || ignoreMissing)
     {
         SaveAndLoad.CreatePrefab(ref Manager.AudioRoot, AudioNodeWorker.CreateTree, FolderSettings.AudioSaveDataPath);
     }
     if (Manager.EventTree == null || ignoreMissing)
     {
         SaveAndLoad.CreatePrefab(ref Manager.EventRoot, AudioEventWorker.CreateTree, FolderSettings.EventSaveDataPath);
     }
     if (Manager.MusicTree == null || ignoreMissing)
     {
         SaveAndLoad.CreatePrefab(ref Manager.MusicRoot, MusicWorker.CreateTree, FolderSettings.MusicSaveDataPath);
     }
     if (Manager.SettingsTree == null || ignoreMissing)
     {
         SaveAndLoad.CreatePrefab(ref Manager.SettingsRoot, NodeFactory.CreateSettingsTree, FolderSettings.SettingsSaveDataPath);
     }
 }