Ejemplo n.º 1
0
 // 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;
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     scoreValue = DrugsStat.calculate();
     score.text = "Score: " + scoreValue;
 }