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 UserIdInventory <TEntity> Load() { return(PersistentDataUtil.Load <UserIdInventory <TEntity> >(InstanceUtil.DirectoryPath(), InstanceUtil.Filename(), InstanceUtil.CreateDefaultInstance)); }