Platform should be initialized in the Boot, before everything else. Got rid of the coroutines
This commit is contained in:
@@ -19,7 +19,8 @@ namespace Nox.Core {
|
||||
}
|
||||
|
||||
public void EnterGameState() {
|
||||
DisclaimerReference gdprReference = Addressables.InstantiateAsync(bootStrapInitializer.splashUIReference).WaitForCompletion().GetComponent<DisclaimerReference>();
|
||||
DisclaimerReference gdprReference = Addressables.InstantiateAsync(bootStrapInitializer.splashUIReference)
|
||||
.WaitForCompletion().GetComponent<DisclaimerReference>();
|
||||
gdprReference.continueButton.onClick.AddListener(() => {
|
||||
gameDataState.ChangeGameState(GameState.MainMenu);
|
||||
Object.Destroy(gdprReference.gameObject);
|
||||
|
||||
Reference in New Issue
Block a user