Skip to content

Commit

Permalink
[SDK-994] feat: go back after login (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
rk132 authored Jul 9, 2024
2 parents 67cb3b3 + 5069e5b commit dbe476e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ private void OnStateChanged(StateType current, StateType previous)

private bool CanShowBackButton(StateType current, StateType previous)
{
return current != startingState && current != previous;
return AuthManager.IsSignedIn switch
{
true => current != StateType.AvatarSelection,
false => current != startingState && current != previous
};

}

public void OnCustomizeDraft(string avatarId)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using ReadyPlayerMe.AvatarCreator;
using ReadyPlayerMe.Core;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;
using TaskExtensions = ReadyPlayerMe.AvatarCreator.TaskExtensions;

Expand Down

0 comments on commit dbe476e

Please sign in to comment.