public void StartGame() { EnableNudge(); EnableBall(); InitializeBumpers(); InitializeFloatArea(); scoreTxt.text = "SCORE: " + _pointsService.GetPoints(); }
public async Task <IActionResult> GetPoints(int id) { var user = await _userService.GetAsync(id); if (user == null) { return(NotFound()); } var points = await _pointService.GetPoints(id); var resource = _mapper.Map <IEnumerable <Point>, IEnumerable <UserBalanceResource> >(points); return(Ok(resource)); }
public async Task <IEnumerable <PointDTO> > Get(CancellationToken ct, string pathToFile, RouteMode mode = RouteMode.Car, bool useRM = false) { if (string.IsNullOrEmpty(pathToFile)) { return(null); } var points = await _pointsService.GetPoints(ct, pathToFile); if (!useRM) { return(points); } _csvFileWriter.WriteToFile(points); return(await _routeMatchingIntegrator.GetRouteMatchingPoints(ct, await _csvFileWriter.ReadAndDeleteFile(ct))); }
public async Task <IActionResult> GetPoints() { return(Ok(await _pointsService.GetPoints())); }