Fix input switching bug, where input would not be registered to GameMode, if game was booted in correct orientation
This commit is contained in:
@@ -68,7 +68,7 @@ namespace Input
|
||||
|
||||
private void Start()
|
||||
{
|
||||
SceneManagerService.Instance.SceneLoadCompleted += SwitchInputOnSceneLoaded;
|
||||
// SceneManagerService.Instance.SceneLoadCompleted += SwitchInputOnSceneLoaded;
|
||||
SwitchInputOnSceneLoaded(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,11 @@ namespace Utility
|
||||
ShowPrompt();
|
||||
orientationCheckCoroutine = StartCoroutine(OrientationCheckRoutine());
|
||||
}
|
||||
else
|
||||
{
|
||||
orientationCorrect = true;
|
||||
OnOrientationCorrect?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsMainMenuScene(Scene scene)
|
||||
|
||||
Reference in New Issue
Block a user