// Update is called once per frame void Update() { playerLives = playerController.GetLives(); if (playerLives == 0) { Time.timeScale = 0.2f; sceneSwitcher.LoadGameOver(); } }
// Update is called once per frame void Update() { playerLives = playerController.GetLives(); if (playerLives == 0) { Time.timeScale = 0.2f; sceneSwitcher.LoadGameOver(); } }