private void OnWon() { _levelManager.OnRoundEnded(_timer.TimeInSeconds); _linesController.ChangeMaxLinesCount(_levelManager.LinesCount); _linesCounter.ChangeMaxLinesCount(_levelManager.LinesCount); _lines.Clear(); _timer.Stop(); _winWindow.SetActive(true); StartCoroutine(NewGameDelayed()); }
public void OnGenerateButtonClick() { _linesController.ChangeMaxLinesCount(_levelManager.LinesCount); foreach (LinePlain lp in _lps) { _linesController.DrawLine(lp.GetPointsForFullScreen()); } StartCoroutine(StartNewDelayed()); }