File tree Expand file tree Collapse file tree
Sequence/SequenceFrontend/Scripts/UI Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using Sequence . EmbeddedWallet ;
44using TMPro ;
55using UnityEngine ;
6+ using System . Collections ;
67
78namespace Sequence . Demo
89{
@@ -160,5 +161,24 @@ private void EnableLoadingScreen(bool enable)
160161 {
161162 _loadingScreen . SetActive ( enable ) ;
162163 }
164+
165+ private void OnApplicationFocus ( bool hasFocus )
166+ {
167+ #if ! UNITY_IOS
168+ if ( hasFocus )
169+ {
170+ StartCoroutine ( DisableLoadingScreenIfNotLoggingIn ( ) ) ;
171+ }
172+ #endif
173+ }
174+
175+ private IEnumerator DisableLoadingScreenIfNotLoggingIn ( )
176+ {
177+ yield return new WaitForSecondsRealtime ( 0.1f ) ;
178+ if ( ! LoginHandler . IsLoggingIn ( ) )
179+ {
180+ EnableLoadingScreen ( false ) ;
181+ }
182+ }
163183 }
164184}
Original file line number Diff line number Diff line change 11{
22 "name" : " xyz.0xsequence.waas-unity" ,
3- "version" : " 3.17.4 " ,
3+ "version" : " 3.17.5 " ,
44 "displayName" : " Sequence Embedded Wallet SDK" ,
55 "description" : " A Unity SDK for the Sequence WaaS API" ,
66 "unity" : " 2021.3" ,
You can’t perform that action at this time.
0 commit comments