Skip to content
Snippets Groups Projects
Commit 71f793e8 authored by MuhamadAjiW's avatar MuhamadAjiW
Browse files

mod: Added more strict outputs

parent 556126c6
2 merge requests!2Base arch,!1Base arch
......@@ -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();
}
......
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