I have a bonus item that doubles the score but I don’t want decimals for points so how do I round up the score
float bonusScore = CurrentScore / 10;
CurrentScore += bonusScore;
I have a bonus item that doubles the score but I don’t want decimals for points so how do I round up the score
float bonusScore = CurrentScore / 10;
CurrentScore += bonusScore;
Use Mathf.RoundToInt function.