示例#1
0
 private void Start()
 {
     Application.targetFrameRate = 300;
     currentLives         = PlayerPrefsController.GetTotalLives();
     explosiveBallEnabled = PlayerPrefsController.GetExplosiveBallEnabled();
     gameCanvas           = FindObjectOfType <GameCanvas>();
     gameCanvas.DisplayScore(currentScore);
     gameCanvas.DisplayLevel(currentLevel);
     gameCanvas.DisplayLives(currentLives);
 }
示例#2
0
 public void AddScoreDestroyed() //Adds and displays score for destroying a block
 {
     currentScore += Convert.ToInt32(pointsPerBlockDestroyed);
     gameCanvas.DisplayScore(currentScore);
 }