diff --git a/Assets/_Scripts/Core/Game/GameController.cs b/Assets/_Scripts/Core/Game/GameController.cs index 94618805f193e77153a33c009c134d852468595b..a64ee1e58bb5f39ddd2aae72dd52af7c32943a04 100644 --- a/Assets/_Scripts/Core/Game/GameController.cs +++ b/Assets/_Scripts/Core/Game/GameController.cs @@ -23,6 +23,13 @@ public class GameController : MonoBehaviour } mainCamera = new GameCameraController(GetComponentInChildren<Camera>()); + + #if STRICT + if(mainCamera == null) + { + Debug.LogError("No main camera detected in child of GameController. How to resolve: create a camera object as child of GameController"); + } + #endif stateController = new GameStateController(); }