private IEnumerator DestroyLevel() { yield return(new WaitForEndOfFrame()); CaveGenerator caveGen = FindObjectOfType <CaveGenerator>(); GrammarGenerator grammarGen = FindObjectOfType <GrammarGenerator>(); caveGen.ClearAll(); grammarGen.ClearAll(); }
private IEnumerator DestroyLevel() { yield return(new WaitForEndOfFrame()); CaveGenerator caveGen = FindObjectOfType <CaveGenerator>(); GrammarGenerator grammarGen = FindObjectOfType <GrammarGenerator>(); caveGen.ClearAll(); grammarGen.ClearAll(); }