public static object XmlReadStorage(System.Type ty) { try { string strTemp = XmlStorage.LoadTextFile(fileName, false); object obj = XmlStorage.DeserializeObject(strTemp, ty); Debug.Log("反序列化成功"); return(obj); } catch { Debug.Log("反序列化失败"); return(null); } }