private void AddLife() { levelManager.AddBonusBall(ballCount); // we need to decrease the bonus factor because in the AddBonusBall it // has been increased for handling score bonus Ball.bonusFactor--; }
void HandleScores() { LevelManager.currentScore += 15; score.GetComponent <Text> ().text = LevelManager.currentScore.ToString(); levelCompleteScore.GetComponent <Text> ().text = LevelManager.currentScore.ToString(); if ((LevelManager.currentScore / (1000 * Ball.bonusFactor)) >= 1) { levelManager.AddBonusBall(balls); } }