public void StopGame(GameResultType type) { if (!IsGameRun) { return; } IsGameRun = false; scoreBoardService.CloseScoreBoard(); detectionService.StopDetection(); drawService.ProjectionClear(); dbService.GameEnd(Game, gameResultType: type); }