Skip to content
Snippets Groups Projects
Commit 354a85d3 authored by Raylouis's avatar Raylouis
Browse files
parents cf7fc18d 91375bbd
No related merge requests found
...@@ -21,7 +21,7 @@ public class OrbSpawner : MonoBehaviour ...@@ -21,7 +21,7 @@ public class OrbSpawner : MonoBehaviour
{ {
timer += Time.deltaTime; timer += Time.deltaTime;
if (timer >= spawnTime && !LevelManager.Instance.fail && !LevelManager.Instance.isShopKeeper && !LevelManager.Instance.isCinematic) if (timer >= spawnTime && LevelManager.Instance != null && !LevelManager.Instance.fail && !LevelManager.Instance.isShopKeeper && !LevelManager.Instance.isCinematic)
{ {
SpawnOrb(); SpawnOrb();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment