Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Sequence.EmbeddedWallet;
using TMPro;
using UnityEngine;
using System.Collections;

namespace Sequence.Demo
{
Expand Down Expand Up @@ -160,5 +161,24 @@ private void EnableLoadingScreen(bool enable)
{
_loadingScreen.SetActive(enable);
}

private void OnApplicationFocus(bool hasFocus)
{
#if !UNITY_IOS
if (hasFocus)
{
StartCoroutine(DisableLoadingScreenIfNotLoggingIn());
}
#endif
}

private IEnumerator DisableLoadingScreenIfNotLoggingIn()
{
yield return new WaitForSecondsRealtime(0.1f);
if (!LoginHandler.IsLoggingIn())
{
EnableLoadingScreen(false);
}
}
}
}
2 changes: 1 addition & 1 deletion Packages/Sequence-Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "3.17.4",
"version": "3.17.5",
"displayName": "Sequence Embedded Wallet SDK",
"description": "A Unity SDK for the Sequence WaaS API",
"unity": "2021.3",
Expand Down