コード例 #1
0
ファイル: FallingObjects.cs プロジェクト: dqtoy/bali-brix
 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--;
 }
コード例 #2
0
 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);
     }
 }