Skip to content

Commit

Permalink
CI Fix on dev (#1277)
Browse files Browse the repository at this point in the history
removed auto initialization on awake on Web3Unity
  • Loading branch information
rob1997 authored Jan 22, 2025
1 parent ca4e8f0 commit 3f824ba
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public static Web3Unity Instance
public static ConnectionScreen ConnectScreen => Instance.GetConnectionScreen();

[Header("Auto-Initialization")]
[SerializeField] private bool initializeOnAwake;
[SerializeField] private bool rememberConnection;

[Header("GUI Settings")]
Expand Down Expand Up @@ -103,14 +102,9 @@ public string PublicAddress
}


private async void Awake()
private void Awake()
{
DontDestroyOnLoad(gameObject);

if (initializeOnAwake)
{
await Initialize(rememberConnection);
}
}

public Task Initialize()
Expand Down

0 comments on commit 3f824ba

Please sign in to comment.