Example #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);
 }
Example #2
0
 public void LevelIncrease() //Increases level and displays to canvas
 {
     currentLevel++;
     gameCanvas.DisplayLevel(currentLevel);
 }