private static IdList <TEntity> Load() { UserIdListData listData = PersistentDataUtil.Load <UserIdListData>(UserIdListUtil.DirectoryPath(), UserIdListUtil.Filename(), UserIdListUtil.CreateDefaultInstance); IdList <TEntity> userInstance = (IdList <TEntity>)ScriptableObject.CreateInstance(IdList <TEntity> .ListName()); userInstance.InitializeWithUserIdListData(listData); return(userInstance); }
private static void Save() { UserIdListData listData = new UserIdListData(UserIdListUtil._userInstance); PersistentDataUtil.Save(UserIdListUtil.DirectoryPath(), UserIdListUtil.Filename(), listData); }