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