コード例 #1
0
 public void OnDestroy()
 {
     if (System.IO.File.Exists(pathToJson))
     {
         System.IO.File.Delete(tempJsonPath());
         System.IO.File.Delete(tempJsonPath() + ".meta");
     }
     acfInfoData = null;
 }
コード例 #2
0
 public void OnAfterDeserialize()
 {
     #if UNITY_5_3_OR_NEWER
     string tmp_json;
     if (System.IO.File.Exists(pathToJson))
     {
         tmp_json    = File.ReadAllText(pathToJson);
         acfInfoData = JsonUtility.FromJson <CriAtomAcfInfo.AcfInfo>(tmp_json);
     }
     else
     {
         tmp_json    = null;
         acfInfoData = null;
     }
     #endif
 }