public void gameStart() { this.imgLifesDisplay.sprite = this.listLifesSprites[playerLifes]; txtScore.text = points.ToString(); this.txtLevels.text = "Level: " + this.level.ToString(); this.soundController.ActiveButtonClick(); this.isGameStarted = true; canvaMainMenu.SetActive(false); canvaInGame.SetActive(true); backgroundController.setActivePiranhaSwimming(false); this.spawnController.StartSpawn(); this.soundController.PlayMotorSound(); InvokeRepeating("NextLevel", 25f, 25f); }