File tree Expand file tree Collapse file tree 6 files changed +20
-21
lines changed Expand file tree Collapse file tree 6 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public static void RemoveAltFromScene(string scene)
114
114
var sceneToModify = EditorSceneManager . OpenScene ( scene ) ;
115
115
116
116
// Find the AltTesterPrefab instance in the scene
117
- var altRunner = GameObject . FindObjectOfType < AltRunner > ( ) ;
117
+ var altRunner = GameObject . FindFirstObjectByType < AltRunner > ( ) ;
118
118
119
119
if ( altRunner != null )
120
120
{
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ private static string GetBundleIdentifierFromArgs()
98
98
return "com.immutable.Immutable-Sample" ;
99
99
}
100
100
101
- private static string GetAltTesterHostFromArgs ( )
101
+ private static string ? GetAltTesterHostFromArgs ( )
102
102
{
103
103
string [ ] args = Environment . GetCommandLineArgs ( ) ;
104
104
for ( int i = 0 ; i < args . Length ; i ++ )
@@ -165,7 +165,7 @@ public static void RemoveAltFromScene(string scene)
165
165
var sceneToModify = EditorSceneManager . OpenScene ( scene ) ;
166
166
167
167
// Find the AltTesterPrefab instance in the scene
168
- var altRunner = GameObject . FindObjectOfType < AltRunner > ( ) ;
168
+ var altRunner = GameObject . FindFirstObjectByType < AltRunner > ( ) ;
169
169
170
170
if ( altRunner != null )
171
171
{
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public static void RemoveAltFromScene(string scene)
114
114
var sceneToModify = EditorSceneManager . OpenScene ( scene ) ;
115
115
116
116
// Find the AltTesterPrefab instance in the scene
117
- var altRunner = GameObject . FindObjectOfType < AltRunner > ( ) ;
117
+ var altRunner = GameObject . FindFirstObjectByType < AltRunner > ( ) ;
118
118
119
119
if ( altRunner != null )
120
120
{
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public class AuthenticatedScript : MonoBehaviour
37
37
private Passport Passport ;
38
38
#pragma warning restore CS8618
39
39
40
- async void Start ( )
40
+ void Start ( )
41
41
{
42
42
if ( Passport . Instance != null )
43
43
{
@@ -165,8 +165,8 @@ public async void GetLinkedAddresses()
165
165
{
166
166
ShowOutput ( $ "Failed to get linked addresses: { ex . Message } ") ;
167
167
}
168
- }
169
-
168
+ }
169
+
170
170
/// <summary>
171
171
/// Navigates to Link Wallet scene.
172
172
/// </summary>
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public void UsePKCE()
81
81
/// authorisation has been granted by the user</param>
82
82
/// <param name="logoutRedirectUri">The URL to which auth will redirect the browser
83
83
/// after log out is complete</param>
84
- private async void InitialisePassport ( string redirectUri = null , string logoutRedirectUri = null )
84
+ private async void InitialisePassport ( string ? redirectUri = null , string ? logoutRedirectUri = null )
85
85
{
86
86
ShowOutput ( "Initialising Passport..." ) ;
87
87
Original file line number Diff line number Diff line change @@ -62,26 +62,25 @@ public async UniTask Init(int engineStartupTimeoutMs)
62
62
webBrowserClient . initialUrl = GameBridge . GetFilePath ( ) ;
63
63
64
64
// Set up engine
65
- webBrowserClient . engine = new EngineConfiguration
65
+ EngineConfiguration engineConfig = ScriptableObject . CreateInstance < EngineConfiguration > ( ) ;
66
+ engineConfig . engineAppName = "UnityWebBrowser.Engine.Cef" ;
67
+ engineConfig . engineFiles = new Engine . EnginePlatformFiles [ ]
66
68
{
67
- engineFiles = new Engine . EnginePlatformFiles [ ]
69
+ new Engine . EnginePlatformFiles ( )
68
70
{
69
- new ( )
70
- {
71
- platform = Platform . Windows64 ,
72
- engineBaseAppLocation = "" ,
73
- engineRuntimeLocation = "UWB/"
71
+ platform = Platform . Windows64 ,
72
+ engineBaseAppLocation = "" ,
73
+ engineRuntimeLocation = "UWB/"
74
74
#if UNITY_EDITOR
75
- ,
76
- engineEditorLocation = "Packages/com.immutable.passport/Runtime/ThirdParty/UnityWebBrowser/[email protected] /Engine~"
75
+ ,
76
+ engineEditorLocation = "Packages/com.immutable.passport/Runtime/ThirdParty/UnityWebBrowser/[email protected] /Engine~"
77
77
#endif
78
- }
79
- } ,
80
- engineAppName = "UnityWebBrowser.Engine.Cef"
78
+ }
81
79
} ;
80
+ webBrowserClient . engine = engineConfig ;
82
81
83
82
// Find available ports
84
- var tcpCommunicationLayer = new TCPCommunicationLayer ( ) ;
83
+ TCPCommunicationLayer tcpCommunicationLayer = ScriptableObject . CreateInstance < TCPCommunicationLayer > ( ) ;
85
84
var rnd = new System . Random ( ) ;
86
85
do
87
86
{
You can’t perform that action at this time.
0 commit comments