diff --git a/sample/Assets/Scripts/AuthenticatedScript.cs b/sample/Assets/Scripts/AuthenticatedScript.cs index c6e35a23..3adfaf92 100644 --- a/sample/Assets/Scripts/AuthenticatedScript.cs +++ b/sample/Assets/Scripts/AuthenticatedScript.cs @@ -29,9 +29,9 @@ public class AuthenticatedScript : MonoBehaviour [SerializeField] private Button RequestAccountsButton; [SerializeField] private Button GetBalanceButton; [SerializeField] private Button GetTransactionReceiptButton; - [SerializeField] private Button SignTypedDataButton; - - // Other + [SerializeField] private Button SignTypedDataButton; + + // Other [SerializeField] private Button LaunchBrowserButton; private Passport Passport; @@ -49,8 +49,8 @@ async void Start() else { ShowOutput("Passport instance is null"); - } - + } + #if !IMMUTABLE_CUSTOM_BROWSER && (UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)) LaunchBrowserButton.gameObject.SetActive(true); #else @@ -409,12 +409,12 @@ public void ShowZkEvmGetTransactionReceipt() public void ShowZkEvmSignTypedData() { SceneManager.LoadScene("ZkEvmSignTypedData"); - } - + } + #endregion - + #region Other - + /// /// Clears the underlying WebView storage and cache, including any saved credentials. /// @@ -435,18 +435,18 @@ public void ClearStorageAndCache() public void ShowSetCallTimeout() { SceneManager.LoadScene("SetCallTimeout"); - } - + } + /// /// Navigates to Launch Browser scene. /// public void LaunchBrowser() { SceneManager.LoadScene("LaunchBrowser"); - } - + } + #endregion - + /// /// Prints the specified message to the output box. /// diff --git a/sample/Assets/Scripts/Other/LaunchBrowserScript.cs b/sample/Assets/Scripts/Other/LaunchBrowserScript.cs index ba17cd37..eb9761ad 100644 --- a/sample/Assets/Scripts/Other/LaunchBrowserScript.cs +++ b/sample/Assets/Scripts/Other/LaunchBrowserScript.cs @@ -3,7 +3,7 @@ public class LaunchBrowserScript : MonoBehaviour { - + /// /// Navigates back to the authenticated scene. /// diff --git a/src/Packages/Passport/Runtime/Scripts/Public/Passport.cs b/src/Packages/Passport/Runtime/Scripts/Public/Passport.cs index 2151da07..b605c0c6 100644 --- a/src/Packages/Passport/Runtime/Scripts/Public/Passport.cs +++ b/src/Packages/Passport/Runtime/Scripts/Public/Passport.cs @@ -116,8 +116,8 @@ public static UniTask Init( { if (Instance == null) { - PassportLogger.Info($"{TAG} Initialising Passport..."); - + PassportLogger.Info($"{TAG} Initialising Passport..."); + #if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN) var obj = new GameObject("Passport"); Instance = obj.AddComponent(); @@ -207,7 +207,7 @@ private async UniTask Initialise( readySignalReceived = true; #else // Mark ready when browser is initialised and game bridge file is loaded - communicationsManager.OnReady += () =>readySignalReceived = true; + communicationsManager.OnReady += () => readySignalReceived = true; #endif // Set up Passport implementation passportImpl = new PassportImpl(communicationsManager); @@ -221,8 +221,8 @@ private async UniTask Initialise( Instance = null; throw ex; } - } - + } + #if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN) private void Awake() { @@ -237,7 +237,7 @@ private void Awake() } } #endif - + /// /// Sets the timeout time for waiting for each call to respond (in milliseconds). /// This only applies to functions that use the browser communications manager.