public void DestroyGenerated()
 {
     _lps.Clear();
     _linesController.DestroyAll();
     foreach (Character character in Characters)
     {
         Object.Destroy(character.Itself);
     }
     Characters.Clear();
 }
Beispiel #2
0
        private IEnumerator NewGameDelayed()
        {
            yield return(new WaitForSeconds(2f));

            _linesController.DestroyAll();
            _charactersGeneratorScript.Generate(_levelManager.CharactersCount);
            _travaGenerator.Generate(TravaGenerator.TravasCount);
            _winWindow.SetActive(false);
            _timer.Restart();
            _timer.Start();
            yield return(null);
        }