Skip to content

Commit

Permalink
A bit simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Falki-git committed Apr 14, 2023
1 parent e23eb74 commit 4f67b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SkipSplashScreenProject/SkipSplashScreenPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Update()
if (gameState == null)
return;

if (GameManager.Instance?.Game?.GlobalGameState?.GetState() == GameState.MainMenu)
if (gameState == GameState.MainMenu)
Destroy(this);
}

Expand Down

0 comments on commit 4f67b86

Please sign in to comment.