コード例 #1
0
 public void InitConfig()
 {
     if (File.Exists(Application.dataPath + "/Resources/skills.txt"))
     {
         string content = UnityTool.LoadTxtFile(Application.dataPath + "/Resources/skills.txt");
         config = JsonConvert.DeserializeObject <SkillConfig>(content);
         return;
     }
     config = AssetDatabase.LoadAssetAtPath <SkillConfig>(savePath);
     if (config == null)
     {
         config = new SkillConfig();
     }
 }