Why doesent my code get executed?

Hello, I have a problem whith getting my code to work properly. Console is error free, but part of my code (ll.109-151) does not get executed and Iam not able to find the cause of that. I testet it and everything until line 109 works as supposed. Does anyone of you guys have an idea what might go wrong there? Thank you for your time and help.

GeneratePlanet is a coroutine. Coroutines are not methods but statemachine generators. When you call “GeneratePlanet();” you just create a statemachine which is returned by “GeneratePlanet” but you don’t do anything with it. To actually run a coroutine you have to use StartCoroutine and pass the statemachine as argument:

StartCoroutine(GeneratePlanet());