From 71f793e8019b1a5d9e05cbdda2f116714c57d74b Mon Sep 17 00:00:00 2001
From: MuhamadAjiW <16521119@mahasiswa.itb.ac.id>
Date: Wed, 24 Apr 2024 01:24:05 +0700
Subject: [PATCH] mod: Added more strict outputs

---
 Assets/_Scripts/Core/Game/GameController.cs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Assets/_Scripts/Core/Game/GameController.cs b/Assets/_Scripts/Core/Game/GameController.cs
index 94618805..a64ee1e5 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();
     }
 
-- 
GitLab