示例#1
0
 static void InitMapSettings(MapGenerator window)
 {
     if (FileHelp.FileExistInDataPathRelativePath(mapSettingsProfilesPath))
     {
         ms = FileHelp.LoadJsonFormatObjectByDataPathRelativePath <MapSettings>
                  (mapSettingsProfilesPath);
     }
     else
     {
         EditorWindow.GetWindow <MapGenerator>().Close();
         throw new System.Exception(@"easy map cannot find map settings, did you forgot to generate one,please check 'MapTool/MapSettings'.");
     }
 }