Пример #1
0
 void Start()
 {
     remainingEnemies     = FindObjectOfType <RemainingEnemies>();
     playerLiveText.text  = playerlives.ToString();
     playerScoreText.text = playerScore.ToString();
     levelText.text       = SceneManager.GetActiveScene().name.ToString();
     enemiesLeftText.text = remainingEnemies.GetEnemyCount().ToString();
 }
Пример #2
0
 public void UpdateEnemiesRemaining()
 {
     remainingEnemies     = FindObjectOfType <RemainingEnemies>();
     enemiesLeftText.text = remainingEnemies.GetEnemyCount().ToString();
 }