Stop a bullet hell pattern and move to the next one

Hello! I’m doing a bullet hell engine and i need to make it so if a pattern’s time ends or the health of the boss is 0 move to the next pattern. Problem is i have no ideas on how to do that

Coroutines maybe, but the bullets are spawned in bulk with for or while loops and coroutines dosent kill that. I dont want to put the patterns in separate scripts because it would be messy and i also tried with events.

Anything that could help or a correction on those methods i tried?

1 Like

You can make Variables for all the patterns then in the for or while loops check if the Variable is true and if it is just break the loop

You dont understand…
I know its messy but it was old code. Just an example of what i would write