We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 455e2ae commit fd0f685Copy full SHA for fd0f685
SkipSplashScreenProject/SkipSplashScreenPlugin.cs
@@ -23,12 +23,12 @@ public void Start()
23
24
public void Update()
25
{
26
- var gameState = GameManager.Instance?.Game.GlobalGameState?.GetState();
+ var gameState = GameManager.Instance?.Game?.GlobalGameState?.GetState();
27
28
if (gameState == null)
29
return;
30
31
- if (GameManager.Instance.Game.GlobalGameState.GetState() == GameState.MainMenu)
+ if (GameManager.Instance?.Game?.GlobalGameState?.GetState() == GameState.MainMenu)
32
Destroy(this);
33
}
34
0 commit comments