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