/// <summary>Initializes the storage system for the given user.</summary> public override void SetActiveUser(int platformUserId, UserDataIOCallbacks.SetActiveUserCallback <int> callback) { base.SetActiveUser(platformUserId, callback); if (SystemIOWrapper_Editor.IsPathWithinEditorAssetDatabase(this.userDir) && !Application.isPlaying) { AssetDatabase.Refresh(); } }
/// <summary>Initializes the storage system for the given user.</summary> public virtual void SetActiveUser(int platformUserId, UserDataIOCallbacks.SetActiveUserCallback <int> callback) { this.UserDirectory = this.GenerateActiveUserDirectory(platformUserId.ToString("x8")); bool success = this.CreateDirectory(this.UserDirectory); if (callback != null) { callback.Invoke(platformUserId, success); } }