// Update is called once per frame void Update() { if (dox) { totalPoints = DrugsStat.calculate(); totalPoints = totalPoints * DrugsStat.wspolczynnikRundy / Timer.time; //wspolczynnik rundy } if (EndPoint.done == true) { EndPoint.done = false; dox = false; totalPoints = ds.getComboMultiplier(ds.getKilledCombo(), totalPoints); DrugsStat.totalPointsLevel = totalPoints; SetCountOfReachedStars(); SetActiveStars(); SaveLevel(); } scoreForPanel.text = " " + (int)totalPoints; }
// Update is called once per frame void Update() { scoreValue = DrugsStat.calculate(); score.text = "Score: " + scoreValue; }