From 401906cb55b62f6e9637c10a81b5361dfac7926b Mon Sep 17 00:00:00 2001 From: Harrison Date: Mon, 13 Nov 2023 13:50:19 +0200 Subject: [PATCH] chore: undo test comments --- .../Scripts/ProfileManager.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Samples~/AvatarCreatorSamples/Scripts/ProfileManager.cs b/Samples~/AvatarCreatorSamples/Scripts/ProfileManager.cs index f3b1724b..2ba9bacb 100644 --- a/Samples~/AvatarCreatorSamples/Scripts/ProfileManager.cs +++ b/Samples~/AvatarCreatorSamples/Scripts/ProfileManager.cs @@ -14,7 +14,7 @@ public class ProfileManager : MonoBehaviour private const string DIRECTORY_NAME = "Ready Player Me"; private const string FILE_NAME = "User"; - //[SerializeField] private ProfileUI profileUI; + [SerializeField] private ProfileUI profileUI; private string filePath; private string directoryPath; @@ -47,7 +47,7 @@ public bool LoadSession() var userSession = JsonConvert.DeserializeObject(json); AuthManager.SetUser(userSession); - //SetProfileData(userSession); + SetProfileData(userSession); SDKLogger.Log(TAG, $"Loaded session from {filePath}"); return true; @@ -58,18 +58,18 @@ public void SaveSession(UserSession userSession) var json = JsonConvert.SerializeObject(userSession); DirectoryUtility.ValidateDirectory(directoryPath); File.WriteAllBytes(filePath, Encoding.UTF8.GetBytes(json)); - //SetProfileData(userSession); + SetProfileData(userSession); SDKLogger.Log(TAG, $"Saved session to {filePath}"); } - // private void SetProfileData(UserSession userSession) - // { - // profileUI.SetProfileData( - // userSession.Name, - // char.ToUpperInvariant(userSession.Name[0]).ToString() - // ); - // } + private void SetProfileData(UserSession userSession) + { + profileUI.SetProfileData( + userSession.Name, + char.ToUpperInvariant(userSession.Name[0]).ToString() + ); + } private void DeleteSession() { @@ -77,7 +77,7 @@ private void DeleteSession() { File.Delete(filePath); } - //profileUI.ClearProfile(); + profileUI.ClearProfile(); SDKLogger.Log(TAG, $"Deleted session at {filePath}"); }