Skip to content

Commit 3f824ba

Browse files
authored
CI Fix on dev (#1277)
removed auto initialization on awake on Web3Unity
1 parent ca4e8f0 commit 3f824ba

File tree

1 file changed

+1
-7
lines changed
  • Packages/io.chainsafe.web3-unity/Runtime/Scripts

1 file changed

+1
-7
lines changed

Packages/io.chainsafe.web3-unity/Runtime/Scripts/Web3Unity.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public static Web3Unity Instance
6969
public static ConnectionScreen ConnectScreen => Instance.GetConnectionScreen();
7070

7171
[Header("Auto-Initialization")]
72-
[SerializeField] private bool initializeOnAwake;
7372
[SerializeField] private bool rememberConnection;
7473

7574
[Header("GUI Settings")]
@@ -103,14 +102,9 @@ public string PublicAddress
103102
}
104103

105104

106-
private async void Awake()
105+
private void Awake()
107106
{
108107
DontDestroyOnLoad(gameObject);
109-
110-
if (initializeOnAwake)
111-
{
112-
await Initialize(rememberConnection);
113-
}
114108
}
115109

116110
public Task Initialize()

0 commit comments

Comments
 (0)