public void OnDestroy() { if (System.IO.File.Exists(pathToJson)) { System.IO.File.Delete(tempJsonPath()); System.IO.File.Delete(tempJsonPath() + ".meta"); } acfInfoData = null; }
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 }