void Start() { remainingEnemies = FindObjectOfType <RemainingEnemies>(); playerLiveText.text = playerlives.ToString(); playerScoreText.text = playerScore.ToString(); levelText.text = SceneManager.GetActiveScene().name.ToString(); enemiesLeftText.text = remainingEnemies.GetEnemyCount().ToString(); }
public void UpdateEnemiesRemaining() { remainingEnemies = FindObjectOfType <RemainingEnemies>(); enemiesLeftText.text = remainingEnemies.GetEnemyCount().ToString(); }